* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


:root {
  --card-bg: rgb(245, 245, 235);
  --text-color: rgb(70, 70, 60);
  --accent-color: rgb(212, 164, 74);
  --secondary-accent: rgb(136, 133, 38);
  --glow-color: rgba(212, 149, 35, 0.5);
  --delay-1: 0.2s;
  --delay-2: 0.4s;
  --delay-3: 0.6s;
}


body {
  background: rgb(218, 218, 218);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  position: relative;
}




body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 149, 35, 0.1) 0%, transparent 70%);
  animation: waveGlow 10s infinite alternate;
  z-index: -1;
  background: radial-gradient(circle at 60% 10%, rgba(212, 149, 35, 0.08) 0%, transparent 70%);
}


#addMagazineModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;

}



#addMagazineModal>div {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 40px 48px;
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.3),
    0 16px 48px rgba(118, 75, 162, 0.2);
  width: 40vw;
  height: 95vh;
  overflow-y: scroll;
  position: relative;
  box-sizing: border-box;
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
  margin: 0;
}

::-webkit-scrollbar {
  display: none;
}


#addMagazineModal>div::before,
#addMagazineModal>div::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(60px);
  z-index: 0;
}

#addMagazineModal>div::before {
  width: 180px;
  height: 180px;
  background: rgb(250, 188, 5);
  top: -60px;
  right: -60px;
}

#addMagazineModal>div::after {
  width: 120px;
  height: 120px;
  background: rgb(250, 188, 5);
  bottom: -40px;
  left: -40px;
}

#closeAddMagazineModal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#closeAddMagazineModal:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  transform: rotate(90deg);
}


#addMagazineForm {
  display: flex;
  flex-direction: column;
  gap: 0px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}


.Magazine_header {
  margin-bottom: 28px;
  color: rgb(250, 188, 5) !important;
  text-align: center !important;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.2px;
}


#addMagazineForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  user-select: none;
  padding-bottom: 5px !important;
}


.form-row {
  display: flex;
  gap: 13px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.form-row1 {
  display: flex;
  gap: 13px;
  align-items: baseline !important;
  margin-bottom: 22px;
}


#addMagazineForm input[type="text"],
#addMagazineForm input[type="date"],
#addMagazineForm select,
#addMagazineForm textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 500;
  color: #333;
  background: #fafafa;
  outline-offset: 2px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

#addMagazineForm input::placeholder,
#addMagazineForm textarea::placeholder {
  color: #aaa;
  font-weight: 400;
}

#addMagazineForm input:focus,
#addMagazineForm select:focus,
#addMagazineForm textarea:focus {
  border-color: rgb(250, 188, 5);
  box-shadow: 0 0 10px rgb(250, 188, 5);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}


#addMagazineForm textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 100px;

}


#addMagazineForm button[type="submit"] {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(90deg, rgb(250, 188, 5), rgb(206, 163, 33));
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 12px rgb(250, 188, 5);
  transition: background 0.4s ease, transform 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

#addMagazineForm button[type="submit"]:hover {
  background: linear-gradient(90deg, rgb(250, 188, 5), rgb(211, 173, 59));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgb(250, 188, 5);
}

#addMagazineForm button[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgb(250, 188, 5);
}




@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}




#openAddMagazineBtn {
  padding: 12px 24px;
  background: linear-gradient(90deg, rgb(250, 188, 5), rgb(201, 158, 30));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 1rem 0;
  align-self: center;
  z-index: 999;
  margin-left: 100px;
}

#openAddMagazineBtn:hover {
  background: linear-gradient(90deg, rgb(201, 158, 30), rgb(250, 188, 5));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgb(233, 201, 104);

}

#openAddMagazineBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

#openAddMagazineBtn:hover::after {
  left: 100%;
}

/* -------------------- */








.hero__space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  margin-top: -5%;
  background-color: transparent;

  background-image:
    repeating-linear-gradient(to right,
      white 0px,
      white 1px,
      transparent 2px,
      transparent 20px),
    repeating-linear-gradient(to right,
      white 0px,
      white 1px,
      transparent 2px,
      transparent 20px);


  background-position:
    100px top,
    calc(100% - 100px) top;


  background-size:
    300px 100%,
    300px 100%;

  background-repeat: no-repeat;
}


.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 5%;
  gap: 20px;
}

.Cart_section {
  width: 95%;
  margin: 2% auto !important;
  display: flex;
  justify-content: center;
}

.pdf-card {
  background: var(--card-bg);
  border-radius: 20px;
  width: 300px;
  max-height: 500px;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(212, 149, 35, 0.2);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  text-align: left;
  box-shadow: 0 10px 20px rgba(70, 70, 60, 0.3), 0 0 10px var(--secondary-accent) !important;

}


.pdf-image {
  width: 100%;
  /* height: 250px; */
  border-radius: 20px;
  margin-bottom: 1rem;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}


.pdf-card h2 {
  font-size: 1rem;
  color: black;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  align-self: stretch;
}

.pdf-card h4 {
  font-size: 0.85rem;
  color: black;
  margin: 0 0 1rem 0;
  font-weight: 400;
  align-self: stretch;
}




/* Offcanvas panel */
#offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#offcanvas-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#offcanvas-panel {
  overflow-y: auto;
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background: #fff;
  z-index: 1051;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.13);
  border-radius: 16px 0 0 16px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

#offcanvas-panel.open {
  right: 0;
}

#offcanvas-content {
  flex: 1 1 auto;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  height: 100%;
  position: relative;
}

/* Stylish Close Button */
.offcanvas-closes {
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  background: none !important;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.offcanvas-closes:hover {
  /* background: #fabc05; */
  color: white;
  transform: scale(1.12) rotate(90deg);
}

.book-button {
  margin: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

@media (min-width: 320px) and (max-width: 374px) {
  #offcanvas-panel {
    width: 90vw;
    border-radius: 12px 0 0 12px;
  }

  #offcanvas-content {
    padding: 1rem 0.5rem 1rem 0.5rem;
  }

  .offcanvas-closes {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    top: 0.4rem;
    right: 0.6rem;
  }

  .book-button {
    margin: 12px;
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (min-width: 375px) and (max-width: 424px) {
  #offcanvas-panel {
    width: 85vw;
    border-radius: 14px 0 0 14px;
  }

  #offcanvas-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }

  .offcanvas-closes {
    width: 34px;
    height: 34px;
    font-size: 1.7rem;
    top: 0.5rem;
    right: 0.8rem;
  }

  .book-button {
    margin: 14px;
    padding: 9px 14px;
    font-size: 15px;
  }
}

@media (min-width: 425px) and (max-width: 767px) {
  #offcanvas-panel {
    width: 75vw;
    border-radius: 16px 0 0 16px;
  }

  #offcanvas-content {
    padding: 1.5rem 1rem 1.2rem 1rem;
  }

  .offcanvas-closes {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    top: 0.5rem;
    right: 1rem;
  }

  .book-button {
    margin: 16px;
    padding: 10px 16px;
    font-size: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #offcanvas-panel {
    width: 60vw;
    border-radius: 18px 0 0 18px;
  }

  #offcanvas-content {
    padding: 1.8rem 1.2rem 1.5rem 1.2rem;
  }

  .offcanvas-closes {
    width: 38px;
    height: 38px;
    font-size: 1.9rem;
    top: 1.6rem;
    right: 1.1rem;
  }

  .book-button {
    margin: 18px;
    padding: 10px 18px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1350px) {
  #offcanvas-panel {
    width: 50vw;
    border-radius: 18px 0 0 18px;
  }

  #offcanvas-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .offcanvas-closes {
    width: 40px;
    height: 40px;
    font-size: 2rem;
    top: 0.6rem;
    right: 1.2rem;
  }

  .book-button {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
  }
}


/* -------------media---------- */




@media (min-width: 320px) and (max-width: 374px) {
  body {
    padding: 1.5rem 0.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  .pdf-card {
    width: 90vw;
    max-width: 320px;
    height: auto;
    padding: 1rem 1.25rem;
    border-radius: 15px;
  }

  #addMagazineModal>div {
    width: 80vw;
    height: 90vh;
    padding: 16px 4vw 24px;
    border-radius: 8px;

  }

  .Magazine_header {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  #addMagazineForm input[type="text"],
  #addMagazineForm input[type="date"],
  #addMagazineForm select,
  #addMagazineForm textarea {
    font-size: 0.98rem;
    padding: 10px 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .form-row1 {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    margin-right: -20px;
  }

  #closeAddMagazineModal {
    top: 6px;
    right: 6px;
    font-size: 18px;
    width: 28px;
    height: 28px;
  }

  #addMagazineForm button[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
    margin-top: 8px;
  }

  #openAddMagazineBtn {
    margin-left: 110px;
  }
}


@media (min-width: 375px) and (max-width: 424px) {
  body {
    padding: 1.5rem 0.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  .pdf-card {
    width: 90vw;
    max-width: 320px;
    height: auto;
    padding: 1rem 1.25rem;
    border-radius: 15px;
  }

  #addMagazineModal>div {
    width: 80vw;
    height: 90vh;
    padding: 16px 4vw 24px;
    border-radius: 8px;
  }

  .Magazine_header {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  #addMagazineForm input[type="text"],
  #addMagazineForm input[type="date"],
  #addMagazineForm select,
  #addMagazineForm textarea {
    font-size: 0.98rem;
    padding: 10px 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .form-row1 {
    flex-direction: inherit;
    gap: 6px;
    margin-bottom: 14px;
    margin-right: -20px;
  }

  #closeAddMagazineModal {
    top: 6px;
    right: 6px;
    font-size: 18px;
    width: 28px;
    height: 28px;
  }

  #addMagazineForm button[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
    margin-top: 8px;
  }

  #openAddMagazineBtn {
    margin-left: 130px;
  }
}

@media(min-width: 425px) and (max-width: 767px) {
  #addMagazineModal>div {
    width: 80vw;
    height: 90vh;
    padding: 16px 4vw 24px;
    border-radius: 8px;
  }

  .Magazine_header {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  #addMagazineForm input[type="text"],
  #addMagazineForm input[type="date"],
  #addMagazineForm select,
  #addMagazineForm textarea {
    font-size: 0.98rem;
    padding: 10px 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }


  .form-row {
    gap: 6px;
    margin-bottom: 14px;
  }

  .form-row1 {
    flex-direction: inherit;
    gap: 6px;
    margin-bottom: 14px;
    margin-right: -20px;
  }

  #closeAddMagazineModal {
    top: 6px;
    right: 6px;
    font-size: 18px;
    width: 28px;
    height: 28px;
  }

  #addMagazineForm button[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
    margin-top: 8px;
  }

  #openAddMagazineBtn {
    margin-left: 150px;
  }

}

@media(min-width: 768px) and (max-width: 1023px) {
  #addMagazineModal>div {
    width: 80vw;
    height: 90vh;
    padding: 16px 4vw 24px;
    border-radius: 8px;
  }

  .Magazine_header {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }

  #addMagazineForm input[type="text"],
  #addMagazineForm input[type="date"],
  #addMagazineForm select,
  #addMagazineForm textarea {
    font-size: 0.98rem;
    padding: 10px 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }


  .form-row {
    gap: 6px;
    margin-bottom: 14px;
  }

  #closeAddMagazineModal {
    top: 6px;
    right: 6px;
    font-size: 18px;
    width: 28px;
    height: 28px;
  }

  #addMagazineForm button[type="submit"] {
    font-size: 1rem;
    padding: 12px 0;
    margin-top: 8px;
  }

  #openAddMagazineBtn {
    margin-left: 43%;
  }

}


@media(width: 1024px) {

  #addMagazineModal {
    width: 100vw;
    height: 100vh;
    padding: 16px 4vw 24px;
    border-radius: 8px;
  }



  #addMagazineModal>div {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 40px 48px;
    border-radius: 16px;
    box-shadow:
      0 8px 24px rgba(102, 126, 234, 0.3),
      0 16px 48px rgba(118, 75, 162, 0.2);
    width: 40vw;
    height: 95vh;
    position: relative;
    box-sizing: border-box;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    margin: 0;
  }


  #addMagazineModal>div::before,
  #addMagazineModal>div::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
  }

  #addMagazineModal>div::before {
    width: 180px;
    height: 180px;

    top: -60px;
    right: -60px;
  }

  #addMagazineModal>div::after {
    width: 120px;
    height: 120px;

    bottom: -40px;
    left: -40px;
  }

  #closeAddMagazineModal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  #closeAddMagazineModal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
  }


  #addMagazineForm {
    display: flex;
    flex-direction: column;
    gap: 0px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }


  .Magazine_header {
    margin-bottom: 28px;

    text-align: center !important;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.2px;
  }


  #addMagazineForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    user-select: none;
    padding-bottom: 5px !important;
  }


  .form-row {
    display: flex;
    gap: 13px;
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .form-row1 {
    display: contents;
    gap: 13px;
    align-items: flex-end;
    margin-bottom: 22px;
  }


  #addMagazineForm input[type="text"],
  #addMagazineForm input[type="date"],
  #addMagazineForm select,
  #addMagazineForm textarea {
    width: 100%;
    padding: 14px 16px;

    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 500;
    color: #333;
    background: #fafafa;
    outline-offset: 2px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  #addMagazineForm input::placeholder,
  #addMagazineForm textarea::placeholder {
    color: #aaa;
    font-weight: 400;
  }

  #addMagazineForm input:focus,
  #addMagazineForm select:focus,
  #addMagazineForm textarea:focus {

    background: #fff;
    outline: none;
    transform: translateY(-1px);
  }


  #addMagazineForm textarea {
    resize: vertical;
    min-height: 40px;
    max-height: 100px;

  }


  #addMagazineForm button[type="submit"] {
    width: 100%;
    padding: 14px 0;

    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    cursor: pointer;

    transition: background 0.4s ease, transform 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 1;
    margin-top: 10px;
  }



  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes slideUp {
    from {
      transform: translateY(100px) scale(0.9);
      opacity: 0;
    }

    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }




  #openAddMagazineBtn {
    padding: 12px 24px;
    background: linear-gradient(90deg, rgb(250, 188, 5), rgb(201, 158, 30));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 1rem 0;
    align-self: center;
    z-index: 999;
    margin-left: 100px;
  }

  #openAddMagazineBtn:hover {
    background: linear-gradient(90deg, rgb(201, 158, 30), rgb(250, 188, 5));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(201, 158, 30);

  }

  #openAddMagazineBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: 0.5s;
  }

  #openAddMagazineBtn:hover::after {
    left: 100%;
  }

}