@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: linear-gradient(to bottom right, #f1d9eb, #ffffff);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

a {
  font-weight: 500;
  color: #004080;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  text-decoration: underline;
  color: #003060;
}

.pgStatus, .elg {
  position: relative;
  font-size: 1.4rem;
  font-weight: 600;
  width: 100%;
  max-width: 600px;
  color: #ffffff;
  background: linear-gradient(to right, #f0b1d1, #513be4);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin: 0 auto 25px auto;
  transition: all 0.3s ease-in-out;
}

.pgStatus a {
  margin-right: 10px;
}

section {
  padding: 20px 20px;
  flex-grow: 1;
  animation: fadeInUp 0.8s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

h2, h5 {
  color: #004080;
  margin-bottom: 20px;
  font-weight: 600;
  animation: fadeInLeft 0.8s ease;
}

.info-card {
  background: linear-gradient(135deg, #eef6ff, #c2f7e1, #f4f4f4);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.9s ease;
}

.info-card img {
  background-color: white;
  max-width: 200px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.info-card img:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.lmp_caption {
  max-width: 640px;
  animation: fadeInRight 0.9s ease;
}
.lmp_caption p {
  font-size: 1.05rem;
  text-align: justify;
  color: #444;
  line-height: 1.7;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.exam-box, .marks-box {
  flex: 1 1 300px;
  background: linear-gradient(to top right, #eef6ff, #ffffff);
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: fadeInUp 1s ease;
}
.exam-box:hover, .marks-box:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

ul {
  padding-left: 25px;
  margin: 15px 0;
}
ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #003060;
  font-weight: 500;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
table th, table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: center;
  font-weight: 500;
  color: #004080;
}
table th {
  background: #004080;
  color: #fff;
}
table tr:last-child {
  background: #f1f1f1;
  font-weight: 700;
}

#sylsection .card {
  max-width: 860px;
  margin: 30px auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: none;
  overflow: hidden;
  animation: fadeInUp 1s ease;
}
#sylsection .card-header {
  background: #004080;
  color: #fff;
  padding: 20px 30px;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}
#sylsection .card-header:hover {
  background-color: #003060;
}

.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: #003060;
  transition: color 0.3s ease;
}
.accordion-button:hover {
  color: #004080;
}
.accordion-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  padding-top: 10px;
}
.accordion-item {
  transition: all 0.6s ease-out;
}

#examPattern-heading,
#head-mar-box {
  position: relative;
  font-size: 1.6rem;
  font-weight: 600;
  color: #004080;
  background: linear-gradient(to right, #b0ddfc, #89c3ed);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 25px;
  transition: all 0.3s ease-in-out;
}

/* ========== 📱 Responsive Media Queries 📱 ========== */
@media (max-width: 1024px) {
  .pgStatus, .elg {
    width: 90%;
    font-size: 1.2rem;
  }
  .info-card {
    padding: 30px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 40px 15px;
  }
  .info-card, .flex-row {
    flex-direction: column;
    padding: 20px;
  }
  .exam-box, .marks-box {
    padding: 20px;
  }
  .lmp_caption {
    max-width: 100%;
    text-align: center;
  }
  h2 {
    font-size: 1.4rem;
  }
  h5 {
    font-size: 1.2rem;
  }
}
@media (max-width: 600px) {
  .pgStatus, .elg {
    font-size: 1.1rem;
    width: 95%;
    padding: 10px 15px;
  }
  .info-card img {
    max-width: 160px;
  }
  .container {
    padding: 0 10px;
  }
  table th, table td {
    font-size: 0.9rem;
    padding: 10px;
  }
  ul li {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .pgStatus, .elg {
    font-size: 1rem;
    padding: 10px;
  }
  .info-card {
    gap: 20px;
  }
  .info-card img {
    max-width: 140px;
  }
  .exam-box, .marks-box {
    padding: 18px 15px;
  }
  .lmp_caption p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  h2 {
    font-size: 1.3rem;
  }
  #examPattern-heading, #head-mar-box {
    font-size: 1.3rem;
    padding: 10px;
  }
}
@media (max-width: 360px) {
  body {
    padding: 10px;
  }
  .pgStatus, .elg {
    font-size: 0.95rem;
    padding: 8px;
    width: 100%;
  }
  .info-card img {
    max-width: 120px;
  }
  table th, table td {
    font-size: 0.85rem;
  }
}

/* ========== ✨ Animations ✨ ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
