/* ====== Newsletter Section Scoped CSS ====== */
#ggs-newsletter-section {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Header */
#ggs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#ggs-header h1 {
  font-size: 24px;
  margin: 0;
}

#ggs-header select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Recent Update Box */
#ggs-recentBox {
  background: linear-gradient(90deg, #4a90e2, #673ab7);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

#ggs-recentBox a {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-top: 10px;
  background: #fff;
  color: #333;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#ggs-recentBox a:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Newsletter Grid */
#ggs-newsletterGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.ggs-newsletter-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.ggs-newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.ggs-newsletter-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ggs-newsletter-card p {
  margin: 0;
  color: #666;
}

/* Mobile */
@media (max-width: 600px) {
  #ggs-header h1 {
    font-size: 20px;
  }
}
/* Base Card */
.ggs-newsletter-card {
  position: relative;
  border-radius: 12px;
  background: #fff;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Gradient Border */
.ggs-newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px; /* thickness of border */
  background: linear-gradient(135deg, #4a90e2, #673ab7, #ff6ec4);
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* Hover state */
.ggs-newsletter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ggs-newsletter-card:hover::before {
  opacity: 1;
}
#ggs-reader {
  margin-top: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#ggs-backBtn {
  background: #4a90e2;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background 0.3s;
}

#ggs-backBtn:hover {
  background: #3578d6;
}
#ggs-reader {
  margin-top: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#ggs-backBtn {
  background: #4a90e2;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background 0.3s;
}

#ggs-backBtn:hover {
  background: #3578d6;
}

#ggs-readerFrame {
  width: 100%;
  height: 80vh;
  border: 0;
  border-radius: 12px;
}






/* Fade-in animation for iframe */
#ggs-readerFrame {
  width: 100%;
  height: 80vh;
  border: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#ggs-readerFrame.loaded {
  opacity: 1;
}
/* Loader container */
#ggs-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  color: #4a90e2;
  font-size: 14px;
  font-weight: 500;
}

/* Spinner animation */
.ggs-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #dbeafe;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  animation: ggs-spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes ggs-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





/* Fade animation for grid */
#ggs-newsletterGrid {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#ggs-newsletterGrid.fade-out {
  opacity: 0;
  transform: translateY(10px);
}
#ggs-newsletterGrid.fade-in {
  opacity: 1;
  transform: translateY(0);
}
