:root {
  --ek-primary: #4b101c;
  --ek-primary-2: #5f1423;
  --ek-accent: #ff4366;
  --ek-accent-soft: rgba(255, 67, 102, 0.12);
  --ek-bg: #f0f2f5;
  --ek-surface: #ffffff;
  --ek-surface-2: #f7f8fa;
  --ek-text: #1c1e21;
  --ek-muted: #65676b;
  --ek-border: #e4e6eb;
  --ek-shadow: 0 8px 28px rgba(15, 20, 25, 0.08);
  --ek-shadow-soft: 0 2px 12px rgba(15, 20, 25, 0.06);
  --ek-radius: 18px;
  --ek-radius-sm: 12px;
  --ek-topbar-height: 70px;
  --ek-sidebar-width: 240px;
}

html,
body {
  background: var(--ek-bg);
  color: var(--ek-text);
}

body {
  padding-bottom: 40px;
}

a {
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#wrapper {
  background: var(--ek-bg);
}

.logo-box {
  background: linear-gradient(180deg, #5c1322 0%, #4b101c 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.logo-box .logo-lg,
.logo-box .logo-sm {
  background: transparent !important;
}

.navbar-custom {
  background: linear-gradient(90deg, #4b101c 0%, #651628 100%);
  box-shadow: 0 2px 18px rgba(39, 10, 16, 0.18);
  backdrop-filter: blur(10px);
}

.navbar-custom .button-menu-mobile,
.navbar-custom .topnav-menu .nav-link {
  color: #fff;
}

.navbar-custom .topnav-menu.float-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 18px 0 0;
}

.navbar-custom .topnav-menu .notification-list > a,
.navbar-custom .topnav-menu .nav-user {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.navbar-custom .topnav-menu .notification-list > a:hover,
.navbar-custom .topnav-menu .nav-user:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.navbar-custom .topnav-menu .notification-list i,
.navbar-custom .topnav-menu .notification-list svg {
  font-size: 20px;
  color: #fff;
}

.nav-user img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.5);
}

.notification-list .noti-icon-badge {
  height: 18px;
  width: 18px;
  top: 8px;
  right: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.left-side-menu {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  border-right: 1px solid var(--ek-border);
  box-shadow: 4px 0 18px rgba(15, 20, 25, 0.04);
  top: var(--ek-topbar-height);
}

.left-side-menu .slimscroll-menu {
  padding: 14px 10px 30px;
}

#sidebar-menu > ul > li > a {
  color: #2b2d30;
  border-radius: 14px;
  margin: 3px 10px;
  font-weight: 600;
  padding: 12px 16px;
}

#sidebar-menu > ul > li > a i {
  color: var(--ek-primary);
  opacity: .9;
}

#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a.active,
#sidebar-menu > ul > li.mm-active > a {
  background: linear-gradient(90deg, rgba(75,16,28,.08), rgba(255,67,102,.08));
  color: var(--ek-primary);
  box-shadow: inset 0 0 0 1px rgba(75,16,28,.06);
}

#sidebar-menu > ul > li > a:hover i,
#sidebar-menu > ul > li > a.active i,
#sidebar-menu > ul > li.mm-active > a i {
  color: var(--ek-accent);
}

.nav-second-level li a,
.nav-thrid-level li a {
  color: var(--ek-muted);
  border-radius: 12px;
  margin: 2px 8px 2px 14px;
}

.nav-second-level li a:hover,
.nav-second-level li.mm-active > a,
.nav-thrid-level li a:hover {
  color: var(--ek-primary);
  background: rgba(75,16,28,.06);
}

#sidebar-menu .menu-title {
  color: #8e939c;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: 14px 18px 8px;
}

.content-page {
  margin-top: calc(var(--ek-topbar-height) + 10px);
  padding: 0 18px 20px;
  background: var(--ek-bg);
}

.page-title-box {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0 0 16px;
}

.page-title-box .page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ek-text);
}

.card,
.card-box,
.card-box-msg,
.post-cardb,
.form-card,
.embed-container,
.dropdown-menu,
.modal-content,
.table-custom,
.subject-card,
.requisito-box,
.info-box,
.restricted-content {
  border: 1px solid var(--ek-border);
  border-radius: var(--ek-radius);
  box-shadow: var(--ek-shadow-soft);
}

.card,
.card-box,
.post-cardb,
.form-card,
.card-box-msg,
.subject-card,
.requisito-box,
.info-box,
.restricted-content {
  background: var(--ek-surface);
}

.dropdown-menu {
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
}

.notification-list .noti-title,
.dropdown-header.noti-title {
  border-radius: 12px;
  background: linear-gradient(135deg, #5b1322 0%, #ff4366 100%);
}

.dropdown-item.notify-item {
  border-radius: 12px;
  margin-bottom: 6px;
}

.dropdown-item.notify-item:hover {
  background: #f5f6f7;
}

.notification-list .notify-item .notify-details,
.notification-list .notify-item .notify-details small,
.notification-list .notify-item .user-msg {
  white-space: normal !important;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.form-control-custom {
  border-radius: 999px !important;
  border: 1px solid #d8dbe0 !important;
  background: #fff;
  box-shadow: none !important;
}

textarea.form-control,
textarea.form-control-custom {
  border-radius: 16px !important;
}

.form-control:focus,
.custom-select:focus,
.form-control-custom:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: rgba(255,67,102,.45) !important;
  box-shadow: 0 0 0 4px rgba(255,67,102,.12) !important;
}

.btn,
.btn-custom-primary,
.btn-custom-secondary,
.btn-request,
.btn-request-e,
.btn-request-s,
.btn-respondb,
.btn-enterado,
.drive-modal-btn {
  border-radius: 999px !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 20px rgba(75,16,28,.12);
}

.btn-primary,
.btn-custom-primary,
.btn-request,
.btn-respondb,
.btn-enterado {
  background: linear-gradient(135deg, #ff4366 0%, #c51f46 100%) !important;
}

.btn-primary:hover,
.btn-custom-primary:hover,
.btn-request:hover,
.btn-respondb:hover,
.btn-enterado:hover,
.btn-custom-secondary:hover,
.btn-request-e:hover,
.btn-request-s:hover,
.drive-modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}

.table,
.table-custom {
  overflow: hidden;
  background: #fff;
}

.table thead th,
.table-custom thead th {
  border-top: none;
  background: #f7f8fa;
  color: #48515c;
  font-weight: 700;
}

.table td,
.table th,
.table-custom td,
.table-custom th {
  border-color: #edf0f2;
}

.footer {
  background: transparent;
  color: #7a7d82;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ccd0d5;
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.feed-shell,
.feed-shell .card,
.feed-shell .card-box {
  border-radius: 18px;
}

.feed-hero,
.feed-composer,
.feed-side-card {
  background: #fff;
  border: 1px solid var(--ek-border);
  border-radius: 18px;
  box-shadow: var(--ek-shadow-soft);
}

.feed-hero {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.feed-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ek-text);
  margin-bottom: 6px;
}

.feed-hero-subtitle {
  color: var(--ek-muted);
  margin-bottom: 0;
}

.feed-composer {
  padding: 18px;
  margin-bottom: 18px;
}

.feed-composer-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.feed-composer-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-composer-input {
  flex: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #65676b;
  font-weight: 500;
}

.feed-composer-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.feed-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f7f8fa;
  color: #3d4045;
  font-weight: 600;
}

.feed-action-chip:hover {
  background: #eef0f2;
}

.feed-side-card {
  padding: 18px;
  margin-bottom: 18px;
}

.feed-side-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.feed-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-side-list li + li {
  margin-top: 10px;
}

.feed-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2b2d30;
  font-weight: 600;
  background: #f7f8fa;
}

.feed-side-link:hover {
  background: #eef0f2;
  color: var(--ek-primary);
}

.edukalli-page-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.edukalli-main-column,
.edukalli-sidebar-column {
    width: 100%;
}

.edukalli-main-column > *,
.edukalli-main-column .form-card,
.edukalli-main-column .banner-container,
.edukalli-main-column .post-containerb {
    width: 100%;
    max-width: 100%;
}

.edukalli-sidebar-column {
    display: flex;
    justify-content: flex-end;
}

.edukalli-sidebar-column .instagram-wrapper {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    position: sticky;
    top: 90px;
}

.edukalli-sidebar-column .instagram-card,
.edukalli-sidebar-column .edu-card {
    width: 100%;
}

@media (min-width: 1200px) {
    .edukalli-main-column {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .edukalli-sidebar-column {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

@media (max-width: 1199.98px) {
    .edukalli-sidebar-column {
        justify-content: stretch;
        margin-top: 24px;
    }

    .edukalli-sidebar-column .instagram-wrapper {
        max-width: 100%;
        position: static;
        top: auto;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
  .content-page {
    padding: 0 12px 20px;
  }

  .feed-hero-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-custom .topnav-menu.float-right {
    margin-right: 10px;
    gap: 6px;
  }

  .navbar-custom .topnav-menu .notification-list > a,
  .navbar-custom .topnav-menu .nav-user {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .feed-composer-row {
    align-items: flex-start;
  }

  .feed-composer-actions {
    gap: 8px;
  }

  .feed-action-chip {
    width: 100%;
    justify-content: center;
  }
}
