/* ==========================================================================
   NoteFlick Custom Styles
   Consolidated from index.php inline styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Notes Section - Horizontal Scrolling
   -------------------------------------------------------------------------- */
.notes-section {
  padding: 24px 12px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.notes-section .section-title {
  color: #fff;
  font-size: 26px;
  margin: 6px 0 14px;
  text-align: left;
  padding-left: 12px;
}

.notes-section .notes-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 8px 12px 18px 12px;
  align-items: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  margin-left: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.notes-section .notes-grid::-webkit-scrollbar {
  height: 8px;
}

.notes-section .notes-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.notes-section .note-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.notes-section .note-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}

.notes-section .note-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-section .note-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.notes-section .note-info {
  padding: 12px 14px;
  text-align: left;
  margin-top: auto;
}

.notes-section .note-info h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #000000;
}

.notes-section .note-info p {
  font-size: 13px;
  color: #bfc1c5;
  margin: 0 0 8px;
}

.notes-section .price {
  color: #000000;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

.notes-section .buy-btn {
  background: #2596be;
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.notes-section,
.notes-section .notes-grid,
.notes-section .note-card {
  -webkit-flex-wrap: nowrap !important;
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 480px) {
  .notes-section .note-card {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
  .notes-section .note-img {
    aspect-ratio: 3/4;
  }
  .notes-section .section-title {
    font-size: 18px;
    padding-left: 8px;
  }
}

@media (max-width: 360px) {
  .notes-section .note-card {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
  }
}

/* --------------------------------------------------------------------------
   Note Card Base Styles
   -------------------------------------------------------------------------- */
.note-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  vertical-align: top;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #000;
  font-weight: bold;
}

.note-card h3 {
  margin: 8px 0;
  font-size: 18px;
  color: #000;
  font-weight: bold;
}

.note-card p {
  margin: 6px 0;
  color: #000;
  font-weight: bold;
}

.note-card s {
  color: #000;
}

.note-card strong {
  color: #000;
}

.stars {
  color: #ffd700;
  font-size: 14px;
  display: flex;
  gap: 2px;
}

.stars span {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Notes Grid (alternate styles)
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-top: 20px;
  font-size: 1.6rem;
}

.notes-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 18px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.notes-grid::-webkit-scrollbar {
  height: 8px;
}

.notes-grid::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Buy Button
   -------------------------------------------------------------------------- */
.buy-btn {
  background: #0b74ff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.buy-btn:hover {
  background: #095d96;
}

/* --------------------------------------------------------------------------
   Noteflick Modal (Email Popup)
   -------------------------------------------------------------------------- */
.noteflick-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

.noteflick-modal {
  width: 420px;
  max-width: 98%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(7, 12, 18, 0.45);
  padding: 18px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  position: relative;
}

.noteflick-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0b2a3a;
}

.noteflick-modal input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
}

.noteflick-modal input[type="email"]:focus {
  border-color: #528ff0;
  box-shadow: 0 4px 18px rgba(82, 143, 240, 0.12);
}

.noteflick-modal .nf-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.noteflick-btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.noteflick-btn.primary {
  background: #0da5c0;
  color: #fff;
}

.noteflick-btn.ghost {
  background: transparent;
  color: #0b2a3a;
  border: 1px solid transparent;
}

.noteflick-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.noteflick-modal .nf-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

@media (max-width: 480px) {
  .noteflick-modal {
    padding: 14px;
  }
  .noteflick-btn {
    width: 100%;
    display: block;
  }
  .noteflick-modal .nf-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   Preview Popup
   -------------------------------------------------------------------------- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-content {
  width: 480px;
  max-width: 96%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup-content img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.popup-title {
  margin: 10px 0 0;
  font-weight: 600;
}

.popup-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* --------------------------------------------------------------------------
   Email Popup
   -------------------------------------------------------------------------- */
#emailPopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#emailPopup .email-box {
  background: #fff;
  width: 360px;
  max-width: 96%;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

#emailPopup input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

#emailPopup .email-actions {
  margin-top: 12px;
  text-align: right;
}

#emailPopup .btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#emailPopup .btn.cancel {
  background: #eee;
  margin-right: 8px;
}

#emailPopup .btn.proceed {
  background: #0b80c9;
  color: #fff;
}

/* --------------------------------------------------------------------------
   NF Offers Section
   -------------------------------------------------------------------------- */
.nf-offers-section {
  padding: 80px 0;
  background: #fdfdfd;
  position: relative;
  overflow: hidden;
}

.nf-offers-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: radial-gradient(#e1e1e1 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.nf-offers-container {
  position: relative;
  z-index: 2;
}

.nf-offers-header {
  max-width: 800px;
  margin-bottom: 60px;
}

.nf-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.nf-badge i {
  color: #0b80c9;
  margin-right: 6px;
}

.nf-offers-title {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
}

.nf-offers-title span {
  background: #0b80c9;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nf-offers-subtitle {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

.nf-offers-actions {
  display: flex;
  gap: 15px;
}

.nf-btn-dark {
  padding: 12px 24px;
  background: #0b161e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.nf-btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 22, 30, 0.3);
  color: #fff;
}

.nf-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.nf-offer-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.nf-offer-card:nth-child(1) {
  top: 0px;
}
.nf-offer-card:nth-child(2) {
  top: -50px;
}
.nf-offer-card:nth-child(3) {
  top: -100px;
}
.nf-offer-card:nth-child(4) {
  top: -150px;
}

.nf-offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

.nf-card-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  box-shadow: inset 0 0 20px rgba(13, 165, 192, 0.05);
  position: relative;
}

.nf-card-icon {
  font-size: 32px;
  background: #0b80c9;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.nf-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.nf-card-desc {
  font-size: 15px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 1200px) {
  .nf-offers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nf-offers-title {
    font-size: 32px;
  }
  .nf-offers-header {
    text-align: center;
    margin: 0 auto 40px auto;
  }
  .nf-offers-actions {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Preview Modal
   -------------------------------------------------------------------------- */
.preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: Poppins, system-ui;
}

.preview-modal.active {
  display: block;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.preview-inner {
  position: relative;
  max-width: 920px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  z-index: 2;
}

.pm-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: #000;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.pm-prev,
.pm-next {
  background: none;
  border: 0;
  font-size: 40px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pm-main {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pm-count {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}

.pm-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.pm-thumbs img {
  height: 60px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}

.pm-thumbs img.selected {
  opacity: 1;
  border-color: #1f8ef1;
}

.pm-desc {
  display: block;
  margin-top: 12px;
  background: #fbfbfb;
  padding: 12px 14px;
  border-radius: 8px;
  color: #222;
  font-size: 15px;
  line-height: 1.5;
  max-height: 160px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.preview-modal:not(.has-desc) .pm-desc {
  display: none;
}

@media (max-width: 768px) {
  .preview-inner {
    flex-direction: column;
    max-width: 95%;
  }
  .pm-prev,
  .pm-next {
    display: none;
  }
}

@media (max-width: 880px) {
  .preview-inner {
    flex-direction: column;
    padding: 14px;
  }
  .pm-main {
    height: 60vh;
    max-height: 60vh;
  }
  .pm-thumbs {
    order: 3;
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow: auto;
  }
  .pm-desc {
    order: 4;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Download Button
   -------------------------------------------------------------------------- */
.download-btn {
  background: #4caf50;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 16px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Book Detail Modal
   -------------------------------------------------------------------------- */
.nf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.nf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.nf-modal-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 4vh auto;
  background: #fff;
  border-radius: 10px;
  display: flex;
  gap: 28px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.3);
  z-index: 2;
  align-items: flex-start;
}

.nf-modal .nf-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.nf-left {
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nf-main-image-wrap {
  width: 100%;
  background: #f7fbff;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 18px rgba(20, 40, 80, 0.06);
}

.nf-main-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.nf-thumbs {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.nf-thumb-list {
  display: flex;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  justify-content: center;
}

.nf-thumb {
  width: 64px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
}

.nf-thumb.active {
  opacity: 1;
  border-color: #2d6cdf;
  transform: scale(1.02);
}

.nf-arrow {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
}

.nf-right {
  width: 54%;
  padding-right: 6px;
}

#nfTitle {
  margin: 6px 0 10px;
  font-size: 28px;
  color: #0b2340;
}

.nf-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.nf-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(10, 20, 40, 0.08);
}

.nf-author strong {
  display: block;
  font-size: 16px;
  color: #0b2746;
}

#nfAuthorMeta {
  color: #666;
  font-size: 13px;
}

.nf-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.nf-price {
  font-size: 16px;
  color: #333;
}

.nf-price s {
  color: #999;
  margin-right: 8px;
}

.nf-buy {
  background: #1f6feb;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 111, 235, 0.18);
}

.nf-right h3 {
  margin: 14px 0 6px;
  color: #0b2340;
  font-size: 16px;
}

.nf-right p {
  color: #444;
  line-height: 1.45;
  font-size: 14px;
  margin: 0;
}

.nf-reviews {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.nf-review {
  background: #fbfbff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f0f4f8;
}

@media (max-width: 900px) {
  .nf-modal-content {
    flex-direction: column;
    width: 95%;
    padding: 16px;
  }
  .nf-left,
  .nf-right {
    width: 100%;
  }
  .nf-thumb {
    width: 56px;
    height: 78px;
  }
  #nfTitle {
    font-size: 20px;
  }
}
/* --------------------------------------------------------------------------
   Navbar & Global Header Styles
   -------------------------------------------------------------------------- */
:root {
  --accent-color: #2596be;
}

.nf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.nf-top-bar {
  background: #0b161e;
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

.nf-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nf-contact-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nf-contact-list li img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.nf-contact-list a {
  color: #ffffff; /* Improved visibility */
  text-decoration: none;
  transition: color 0.2s;
}

.nf-contact-list a:hover {
  color: var(--accent-color);
}

/* Main Navigation Bar */
.nf-main-nav {
  padding: 8px 0;
  background: #fff;
}

.nf-main-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nf-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.nf-nav-center {
  display: flex;
  justify-content: center;
}

.nf-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  border-radius: 900px;
  padding: 5px;
}

.nf-nav-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600; /* Bolder for visibility */
  color: #333; /* Darker for visibility */
  text-decoration: none;
  border-radius: 800px;
  transition: all 0.2s;
}

.nf-nav-links li a i {
  font-size: 14px;
  color: #666;
}

.nf-nav-links li a:hover,
.nf-nav-links li.active a {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nf-nav-links li a:hover i,
.nf-nav-links li.active a i {
  color: var(--accent-color);
}

/* Header Buttons */
.nf-header-btns {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.nf-mobile-only-btns {
  display: none;
}

@media (max-width: 991px) {
  .nf-desktop-only-btns {
    display: none !important;
  }
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 900px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.nf-btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.nf-btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.nf-btn-primary {
  background: var(--accent-color);
  color: #fff;
}

.nf-btn-primary:hover {
  background: #1f7ea8;
  color: #fff;
}

/* Search Dropdown */
.nf-search-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nf-search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nf-search-toggle img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.nf-search-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 300px;
  z-index: 1001;
}

.nf-search-dropdown.active {
  display: block;
}

.nf-search-form {
  display: flex;
  gap: 8px;
}

.nf-search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.nf-search-form button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: none;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.nf-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.nf-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #333;
}

body.nf-menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .nf-top-bar {
    display: none;
  }
  .nf-main-nav {
    padding: 6px 0;
  }
  .nf-main-nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 15px;
  }
  .nf-logo img {
    height: 50px;
  }
  .nf-mobile-toggle span {
    transition: all 0.3s ease;
  }
  .nf-mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nf-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nf-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nf-nav-center {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    z-index: 999;
    overflow-y: auto;
  }
  .nf-nav-center.active {
    display: flex;
  }
  .nf-nav-links {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 8px;
  }
  .nf-nav-links li {
    width: 100%;
  }
  .nf-nav-links li a {
    border-radius: 12px;
    background: #f8f9fa;
    padding: 14px 20px;
    font-size: 16px;
    width: 100%;
  }
  .nf-mobile-toggle {
    display: flex;
    order: 3;
  }
  .nf-header-btns {
    display: flex;
    margin-top: 30px;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    order: 2; /* In mobile menu drawer */
  }
  .nf-nav-center.active .nf-header-btns {
    display: flex;
  }
  /* If buttons are outside nf-nav-center in HTML, we need to hide them or move them */
  .nf-main-nav-inner > .nf-header-btns {
    display: none;
  }
  .nf-nav-center .nf-mobile-only-btns {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nf-logo img {
    height: 42px;
  }
}

/* ========== Footer Section Styles ========== */
.nf-footer {
  background: linear-gradient(180deg, #0a1628 0%, #050d18 100%);
  position: relative;
  overflow: hidden;
}

.nf-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 150, 190, 0.3),
    transparent
  );
}

/* Main Footer */
.nf-footer-main {
  padding: 80px 0 50px;
  position: relative;
}

.nf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 50px;
}

/* Brand Column */
.nf-footer-brand {
  max-width: 320px;
}

.nf-footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.1);
}

.nf-footer-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Contact Info */
.nf-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nf-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.nf-footer-contact li:last-child {
  margin-bottom: 0;
}

.nf-footer-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(37, 150, 190, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 14px;
}

.nf-footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nf-footer-contact a:hover {
  color: var(--accent-color);
}

/* Widget Columns */
.nf-footer-widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px 0;
  position: relative;
  padding-bottom: 12px;
}

.nf-footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Links */
.nf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nf-footer-links li {
  margin-bottom: 12px;
}

.nf-footer-links li:last-child {
  margin-bottom: 0;
}

.nf-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.nf-footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nf-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.nf-footer-links a:hover::before {
  width: 12px;
}

/* Newsletter */
.nf-footer-newsletter-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.nf-footer-newsletter-form {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.nf-footer-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.nf-footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.nf-footer-newsletter-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(37, 150, 190, 0.4);
}

.nf-footer-newsletter-btn {
  padding: 14px 24px;
  background: var(--accent-color);
  border: none;
  border-radius: 0 10px 10px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nf-footer-newsletter-btn:hover {
  background: #1f8eb8;
}

/* Social Links */
.nf-footer-social {
  display: flex;
  gap: 12px;
}

.nf-footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nf-footer-social a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 150, 190, 0.3);
}

/* Footer Bottom */
.nf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.nf-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nf-footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.nf-footer-copyright a {
  color: var(--accent-color);
  text-decoration: none;
}

.nf-footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nf-footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nf-footer-legal a:hover {
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 991px) {
  .nf-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .nf-footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nf-footer-main {
    padding: 60px 0 40px;
  }

  .nf-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nf-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .nf-footer-legal {
    justify-content: center;
  }

  .nf-footer-newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .nf-footer-newsletter-input {
    border-radius: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nf-footer-newsletter-btn {
    border-radius: 10px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nf-footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nf-footer-legal {
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   About Page Premium Styles
   -------------------------------------------------------------------------- */
.nf-about-hero {
  background: linear-gradient(135deg, #0a1628 0%, #050d18 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.nf-about-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle,
    rgba(37, 150, 190, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.nf-about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.nf-about-hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37, 150, 190, 0.1);
  border: 1px solid rgba(37, 150, 190, 0.2);
  border-radius: 30px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.nf-about-hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nf-about-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.nf-about-section {
  padding: 100px 0;
  background: #fff;
}

.nf-about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nf-about-image-wrap {
  position: relative;
}

.nf-about-image-main {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.nf-about-image-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.nf-about-image-badge .count {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-color);
}

.nf-about-image-badge .text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #0d1e33;
}

.nf-section-label {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.nf-section-title {
  font-size: 38px;
  font-weight: 700;
  color: #0d1e33;
  margin-bottom: 24px;
  line-height: 1.2;
}

.nf-section-text {
  font-size: 16px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 30px;
}

.nf-mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.nf-mission-card {
  background: #f8fafc;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.nf-mission-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

.nf-mission-icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 150, 190, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 24px;
  margin-bottom: 24px;
}

.nf-mission-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0d1e33;
  margin-bottom: 16px;
}

.nf-mission-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .nf-about-content-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .nf-mission-cards {
    grid-template-columns: 1fr;
  }
  .nf-about-hero h1 {
    font-size: 42px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }
}

/* --------------------------------------------------------------------------
   Auth Pages (Signin, Signup, Admin Login)
   -------------------------------------------------------------------------- */
.nf-auth-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.nf-auth-container {
  max-width: 1000px;
  margin: 0 auto;
}

.nf-auth-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nf-auth-sidebar {
  background: var(--accent-color);
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nf-auth-sidebar::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.nf-auth-sidebar::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.nf-auth-sidebar h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.nf-auth-sidebar p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

.nf-auth-form-wrap {
  padding: 60px;
  background: #fff;
}

.nf-auth-form-header {
  margin-bottom: 40px;
}

.nf-auth-form-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0b161e;
  margin-bottom: 8px;
}

.nf-auth-form-header p {
  color: #64748b;
  font-size: 15px;
}

.nf-auth-form .form-group {
  margin-bottom: 20px;
}

.nf-auth-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0b161e;
  margin-bottom: 8px;
}

.nf-auth-input {
  width: 100%;
  padding: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}

.nf-auth-input:focus {
  border-color: var(--accent-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 150, 190, 0.1);
}

.nf-auth-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.nf-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 150, 190, 0.2);
  filter: brightness(1.1);
}

.nf-auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 15px;
  color: #64748b;
}

.nf-auth-footer a {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
}

.nf-auth-footer a:hover {
  text-decoration: underline;
}

.nf-auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.nf-auth-options a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Improved Modals / Dialogs
   -------------------------------------------------------------------------- */
.nf-modal-backdrop {
  background: rgba(11, 22, 30, 0.8);
  backdrop-filter: blur(8px);
}

.nf-modal-content {
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

.nf-modal-header {
  background: #f8fafc;
  padding: 24px 30px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.nf-modal-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0b161e !important;
}

.nf-modal-body {
  padding: 30px !important;
}

.nf-modal-footer {
  padding: 20px 30px !important;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0 !important;
}

@media (max-width: 768px) {
  .nf-auth-card {
    grid-template-columns: 1fr;
  }
  .nf-auth-sidebar {
    display: none;
  }
  .nf-auth-form-wrap {
    padding: 40px 30px;
  }
}

/* --------------------------------------------------------------------------
   Video Popup (matches Educve theme)
   -------------------------------------------------------------------------- */
.td_video_popup {
  z-index: 12000;
}

.td_video_popup.active .td_video_popup-content {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.td_video_popup-overlay {
  background: rgba(11, 22, 30, 0.9) !important;
  backdrop-filter: blur(10px);
}

.td_video_popup-close {
  background: #fff !important;
  color: #0b161e !important;
  width: 45px !important;
  height: 45px !important;
  top: -60px !important;
  right: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.td_video_popup-close:after {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.td_video_popup-close:hover {
  transform: rotate(90deg);
  background: var(--accent-color) !important;
  color: #fff !important;
}
