/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}
.container {
  margin: 0 20%;
}

/* Header */
header {
  background-color: #004080;
  color: white;
  padding: 20px 10px;
  text-align: center;
  border-radius: 0 0 8px 8px;
}
.logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}
.address,
.recognition {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin: 5px 0;
}
.logo-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-heading img {
  width: 80px;
  height: auto;
}
.heading-text h1, 
.heading-text h2, 
.heading-text p {
  margin: 4px 0;
}

/* Navigation */
/* Main Nav Styles */
nav {
  background-color: #004080;
  padding: 10px 0;
  margin-top: 10px;
  border-radius: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #0066cc;
}

/* Dropdown Styles */
.dropdown-menu {
  list-style: none; /* <- this removes bullets */
  display: none;
  position: absolute;
  background-color: #004080;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 999;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: white;
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/* Content Sections */
main section {
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Courses & Vision-Mission Headings */
main section h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 15px;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
}

/* Vision-Mission Subheadings */
#vision-mission h3 {
  font-size: 22px;
  color: #005599;
  margin-top: 20px;
}

/* Paragraph Styling */
main section p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* List Styling */
main section ul {
  list-style-type: disc;
  padding-left: 20px;
}
main section ul li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #444;
}

/* Image Slider */
.image-slider {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
}
.slide {
  display: none;
}
.slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  user-select: none;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* News and Events */
#news-events {
  background-color: #e6f0ff;
  flex: 1 1 30%;
  max-width: 400px;
}
#news-events h2 {
  margin-bottom: 10px;
  color: #003366;
}
.news-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
  padding-bottom: 10px;
  transition: 0.3s;
}
.news-date {
  font-size: 0.9em;
  color: #555;
}
.news-item:hover {
  background-color: #f0f8ff;
  transform: scale(1.01);
}

/* About Section */
.about-institute {
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.about-institute h2 {
  text-align: center;
  margin-bottom: 20px;
}
.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table td {
  padding: 10px 15px;
  border: 1px solid #ccc;
  text-align: left;
}
.about-table th {
  background-color: #f0f0f0;
  width: 40%;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}
th {
  background-color: #f0f0f0;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Map Section */
.map-location {
  text-align: center;
  margin-top: 20px;
}
.map-container {
  margin: 0 auto;
  width: 80%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  height: 90%;
}

/* Footer */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px 8px 0 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    margin: 0 10%;
  }
}
@media (max-width: 768px) {
  .container {
    margin: 0 5%;
  }
  .content {
    flex-direction: column;
    align-items: center;
  }
  section,
  #news-events {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 5px 0;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
section, header, footer, .map-container {
  animation: fadeIn 1s ease-in-out;
}
iframe {
  width: 100%;
  height: 600px;
  border: none;
}
/* PDF Year Dropdown */
.year-selection {
  margin: 20px auto;
  text-align: center;
}

/* PDF Viewer iframe styling */
.pdf-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

iframe#pdfViewer {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* .gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.gallery-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
} */
 /* ===== Gallery Styles ===== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  padding: 20px;
  justify-items: center;
}

.gallery-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-container img:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .heading-text h1 {
    font-size: 1.2em;
  }
}
.download-btn {
  display: inline-block;
  background-color: #ffcc00;
  color: #000;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #ffaa00;
  color: #fff;
}
