.body{
  font-family: 'Inter', sans-serif;
}


.publication-section {
  min-height:560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/Rectangle 188 (1).png") no-repeat center/cover;
  position: relative;
  text-align: center;
  padding: 0 20px;
}

.publication-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
}

.publication-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.publication-content h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.publication-content p {
  font-size: 18px;
  color: #ddd;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1e73be, #155a96);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.edition-tag {
  color: #2fb7c9;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  padding-left: 50px;
}

.edition-tag::before {
  content: "";
  width: 40px;
  height: 2px;
  background: #2fb7c9;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.publication-container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 30px 0;
}

.publication-container h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 32px;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
  gap: 30px;
  justify-content: center;
}

.mag-card {
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mag-card:hover {
  transform: translateY(-6px);
}

.mag-card img {
  width: 100%;
  height: 320px;
  /* object-fit: cover; */
  /* border-radius: 12px 12px 0 0; */
}

.mag-card h3 {
  font-size: 20px;
  padding: 10px 20px 0;
}

.mag-card p {
  padding: 0 20px;
  font-size: 14px;
  color: #555;
}

.mag-card .meta {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

.mag-card .btn {
  margin: 15px 20px 20px;
  text-align: center;
}

.single-mag-container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 60px 0;
}

.pdf-preview {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.pdf-preview iframe {
  border: none;
  width: 100%;
  min-height: 500px;
}

.mag-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.cover-img {
  width: 280px;
  height: 320px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mag-details h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.mag-details > div {
  flex: 1 1 auto;
}

.single-mag-container .btn {
  margin-top: 30px;
}

.form-popup {
  margin-top: 20px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  max-width: 450px;
}

.form-popup input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.3s ease;
}

.form-popup input:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.1);
}

.pub-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 10px 0;
  margin-top: 40px;
}

.pub-heading {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.pub-item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: #ffffff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
  transition: 0.3s ease;
  align-items: center;
}

.pub-item:hover {
  transform: translateY(-5px);
}

.pub-image {
  flex: 1 1 300px;
  text-align: right;
}

.pub-image img {
  width: 100%;
  max-width: 520px;
  height: 460px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pub-content {
  flex: 1 1 300px;
}

.pub-content h2,
.pub-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.pub-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;
  padding-right: 30px;
}

.pub-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.pub-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #1e73be, #155a96);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.pub-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .mag-details,
  .pub-item {
    align-items: center;
    text-align: center;
  }
  .publication-section{
    margin-top: -60px;
  }

  .publication-container {
    width: 100%;
    margin: auto 0px;
    padding: 0px 20px;
  }

  .cover-img,
  .pub-image img {
    width: 100%;
    margin-bottom: 20px;
  }

  .pub-content {
    width: 50%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .publication-container h1 {
    font-size: 24px;
  }

  .mag-card {
    width: 100%;
    margin: auto 0px;
    text-align: center;
  }

  .mag-card img {
    height: 180px;
  }

  .pdf-preview iframe {
    height: 350px;
  }

  .form-popup {
    width: 100%;
  }

  .pub-desc {
    font-size: 14px;
  }

  .pub-heading {
    font-size: 28px;
  }

  .pub-content h2,
  .pub-title {
    font-size: 26px;
  }
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1e73be, #155a96);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  /* transition: 0.3s ease; */
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   PUBLICATION GRID
========================= */
.publication-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

.publication-container h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.edition-tag {
  color: #2fb7c9;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  padding-left: 50px;
}

.edition-tag::before {
  content: "";
  width: 40px;
  height: 2px;
  background: #2fb7c9;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.mag-card {
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mag-card:hover {
  transform: translateY(-6px);
}

.mag-card img {
  width: 100%;
  height: 360px;
  /* object-fit: cover; */
  /* border-radius: 12px 12px 0 0; */
}

.mag-card h3 {
  font-size: 20px;
  padding: 15px 20px 0;
}

.mag-card p {
  padding: 0 20px;
  font-size: 14px;
  color: #555;
}

.mag-card .meta {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

.mag-card .btn {
  margin: 15px 20px 20px;
  text-align: center;
}

/* =========================
   SINGLE MAGAZINE PAGE
========================= */
.single-mag-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

.pdf-preview {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.pdf-preview iframe {
  border: none;
  width: 100%;
  min-height: 500px;
}

.mag-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.cover-img {
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mag-details h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.mag-details > div {
  flex: 1 1 auto;
}

.single-mag-container .btn {
  margin-top: 30px;
}

/* =========================
   MAGAZINE CARD LAYOUT
========================= */
.mag-card-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  transition: 0.3s ease;
}

.mag-card-layout:hover {
  transform: translateY(-5px);
}

.mag-left {
  flex: 1 1 300px;
}

.mag-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.mag-description {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  max-width: 550px;
}

.mag-download-btn {
  padding: 12px 26px;
  background: linear-gradient(135deg, #1e73be, #155a96);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.mag-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mag-right {
  flex: 1 1 300px;
  text-align: right;
}

.mag-right img {
  width: 100%;
  max-width: 520px;
  height: 460px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
  .mag-card-layout {
    flex-direction: column-reverse;
    text-align: center;
    width: 100%;
  }

  .mag-left {
    width: 100%;
  }

  .mag-left,
  .mag-right {
    flex: 1 1 100%;
  }

  .mag-right {
    text-align: center;
    margin-bottom: 20px;
  }

  .mag-left h2 {
    font-size: 28px;
  }

  .mag-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .mag-download-btn {
    font-size: 14px;
    padding: 10px 22px;
  }
}

@media (max-width: 600px) {
  .single-mag-container {
    padding: 40px 10px;
  }

  .pdf-preview iframe {
    height: 350px;
  }

  .mag-left h2 {
    font-size: 24px;
  }

  .mag-description {
    font-size: 14px;
  }

  .mag-download-btn {
    width: 100%;
    padding: 12px 20px;
  }

  .mag-right img {
    max-width: 100%;
    height: auto;
  }
}

.magazine-continer {
  width: 100%;
  background-color: #000;
  margin-top: -20px;
  padding: 80px 0px;
  text-align: center;
}

.magazine-continer h1 {
  color: #fff;
}

.magazine-wrapper {
  position: relative;
  width: 950px;
  margin: 50px auto;
}

#flipbook {
  width: 900px;
  height: 600px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}

/* Container for the whole magazine */
.magazine-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;

  margin: 0 auto;
  font-family: "Arial", sans-serif;
  background-color: #000;
}

/* Title styling */
.magazine-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
  margin-top: 40px;
}

/* Book pages container */
.book {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

/* Canvas styling */
canvas {
  border: 1px solid #ccc;
  width: 100%;
  max-width: 500px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Controls */
.controls {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.controls button {
  padding: 10px 25px;
  background-color: #2fb7c9;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.controls button:hover {
  background-color: #2fb7c9;
  transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .book {
    flex-direction: column;
    gap: 15px;
  }

  canvas {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .magazine-container h2 {
    font-size: 1.5rem;
  }

  .controls button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
