.gallery-grid {
  display: flex;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  position: relative;
}

.gallery-item {
  flex: 0 0 220px;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.35s ease;
  display: block;
}

.gallery-item img:hover {
  transform: scale(1.05);
  opacity: 0.9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* scrollbar hide */

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== GALLERY MODAL (for assets/js/galerry.js) ===== */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 6px;
  border: 3px solid #fff;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.gallery-prev {
  left: 30px;
}

.gallery-next {
  right: 30px;
}

/* Tablet */

@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 180px;
  }

  .gallery-item img {
    height: 130px;
  }
}

/* Mobile */

@media (max-width: 576px) {
  .gallery-item {
    flex: 0 0 140px;
  }

  .gallery-item img {
    height: 100px;
    border-radius: 6px;
  }
}


/* ===== Academic Calendar Section - Start ===== */

.academic-calendar-section {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 4px;
}

.academic-calendar-section h2 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.academic-calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.academic-calendar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8faff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.academic-calendar-item:hover {
  background: #eef5ff;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 185, 242, 0.1);
}

.academic-calendar-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b9f2, #0e56c2);
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
}

.academic-calendar-info {
  flex: 1;
  min-width: 0;
}

.academic-calendar-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.academic-calendar-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.academic-calendar-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #00b9f2, #0e56c2);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 185, 242, 0.2);
}

.academic-calendar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 185, 242, 0.35);
  background: linear-gradient(135deg, #0e56c2, #00b9f2);
}

/* ===== PDF Viewer Modal - Start ===== */

.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.pdf-modal.active {
  display: flex;
}

.pdf-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: pdfModalFadeIn 0.3s ease;
}

@keyframes pdfModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8faff;
}

.pdf-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.pdf-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #eef2f6;
  border-radius: 50%;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pdf-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.pdf-modal-body {
  flex: 1;
  min-height: 70vh;
  display: flex;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

/* ===== Academic Calendar Responsive - Start ===== */

@media (max-width: 768px) {
  .academic-calendar-section h2 {
    font-size: 18px;
  }

  .academic-calendar-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .academic-calendar-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 18px;
  }

  .academic-calendar-info h3 {
    font-size: 14px;
  }

  .academic-calendar-info p {
    font-size: 12px;
  }

  .academic-calendar-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
  }

  .pdf-modal {
    padding: 10px;
  }

  .pdf-modal-content {
    max-height: 95vh;
    border-radius: 8px;
  }

  .pdf-modal-header {
    padding: 12px 16px;
  }

  .pdf-modal-header h3 {
    font-size: 15px;
  }

  .pdf-modal-body {
    min-height: 50vh;
  }

  .pdf-modal-body iframe {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .academic-calendar-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .academic-calendar-info {
    width: 100%;
  }

  .pdf-modal-body iframe {
    height: 40vh;
  }
}
/* ===== Academic Calendar & PDF Modal - End ===== */

/* ===== Academic Calendar - Inline PDF Viewer (no modal) ===== */

.academic-pdf-viewer{
  /* Full-page inline viewer (overlay) */
  position: fixed;
  inset: 0;
  z-index: 99999;

  width: 100%;
  height: 100%;
  margin: 0;

  background: rgba(0,0,0,0.75);
  padding: 18px;

  overflow: auto;
}

.academic-pdf-header{
  /* header will be inside content box */
}

.academic-pdf-viewer > .academic-pdf-header,
.academic-pdf-viewer > .academic-pdf-body{
  position: relative;
  z-index: 1;
}

.academic-pdf-viewer > .academic-pdf-header{
  max-width: 1100px;
  margin: 0 auto;
}

.academic-pdf-viewer > .academic-pdf-body{
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}


.academic-pdf-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  background:#f8faff;
  border-bottom:1px solid var(--border);
}

.academic-pdf-header h3{
  font-size:16px;
  font-weight:700;
  margin:0;
  color:#1e293b;
}

.academic-pdf-close{
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:#eef2f6;
  color:#64748b;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.academic-pdf-close:hover{
  background:#e2e8f0;
  color:#1e293b;
}

.academic-pdf-body{
  width:100%;
  padding:0;
}

.academic-pdf-body iframe{
  width:100%;
  height:70vh;
  border:none;
  display:block;
}

@media (max-width: 768px){
  .academic-pdf-body iframe{height:50vh;}
}

@media (max-width: 480px){
  .academic-pdf-body iframe{height:40vh;}
}

