/* ===============================
   GLOBAL
================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
}

p, span { font-family: 'Times New Roman', Times, serif; }
h1, h3  { font-family: Cambria, serif; }

/* ===============================
   TOP BAR
================================ */
.topbar {
  background: linear-gradient(90deg,#e0ddde,#1b2d70);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  color: white;
}

.clg-logo { height: 90px; width: auto; object-fit: contain; }

.title-box { text-align: center; flex: 1; }

.title-box h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  letter-spacing: 2px;
  animation: glow 2s infinite alternate;
}

.title-box span {
  color: yellow;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
}

@keyframes glow {
  from { text-shadow: 0 0 5px white; }
  to   { text-shadow: 0 0 20px yellow; }
}

/* ===============================
   NAVBAR
================================ */
.menu {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  gap: 4px;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Times New Roman', serif;
  padding: 14px 20px;
  display: inline-block;
  position: relative;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-item:hover { color: yellow; }

.nav-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 0; height: 2px;
  background: yellow;
  transition: 0.3s;
}

.nav-item:hover::after { width: 100%; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 14px 20px 14px auto;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
}
.nav-overlay.show { display: block; }

/* ── Dropdown ── */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle { cursor: pointer; }
.caret { font-size: 11px; margin-left: 4px; transition: transform 0.2s; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #1c1c1c;
  min-width: 180px;
  border-top: 2px solid yellow;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  overflow: visible;
}

.dropdown-menu a {
  display: block;
  color: #ddd;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover { background: #333; color: yellow; }

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu { display: block; }
  .dropdown:hover .caret { transform: rotate(180deg); }
}

/* Sub-dropdown */
.sub-dropdown { position: relative; }

.sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ddd;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sub-toggle:hover { background: #333; color: yellow; }

.sub-menu {
  display: none;
  position: absolute;
  left: 100%; top: 0;
  background: #222;
  min-width: 180px;
  border-left: 2px solid yellow;
  border-radius: 0 6px 6px 0;
}

.sub-menu a {
  display: block;
  color: #ccc;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
}
.sub-menu a:hover { background: #333; color: yellow; }

@media (min-width: 769px) {
  .sub-dropdown:hover .sub-menu { display: block; }
}

/* ===============================
   HERO / TESTIMONIAL
================================ */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 20px;
  color: white;
  background: linear-gradient(to right,#003366,#0059b3);
}

.testimonial-hero {
  background: #fff;
  color: #333;
  min-height: 15vh;
  flex-direction: column;
}

.testi-title {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-family: Cambria, serif;
}

.testi-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.testi-text {
  font-size: 20px;
  font-style: italic;
  max-width: 600px;
  text-align: center;
  font-family: 'Times New Roman';
}

.arrow { font-size: 36px; color: #ff7043; cursor: pointer; user-select: none; }
.arrow:hover { color: #f4511e; }

.dots { margin-top: 20px; }
.dot {
  height: 10px; width: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #f4511e;
  margin: 0 4px;
}
.dot.active { background: #f4511e; }

/* ===============================
   FLASH
================================ */
.flash {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  flex-wrap: wrap;
}

.flash-card {
  background: white;
  padding: 25px;
  width: 200px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
  font-family: 'Segoe UI', sans-serif;
}
.flash-card:hover { background: #003366; color: white; transform: scale(1.1); }

/* ===============================
   ABOUT / FACILITIES
================================ */
.about, .facilities {
  background: white;
  padding: 50px;
  text-align: center;
  margin: 20px;
  border-radius: 10px;
}

.about-points {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.about-points li {
  font-size: 18px;
  margin: 15px 0;
  padding-left: 40px;
  position: relative;
  line-height: 1.6;
}

.about-points li::before {
  content: "✔";
  position: absolute;
  left: 0; top: 3px;
  color: #f4511e;
  font-size: 18px;
  font-weight: bold;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.facility-card {
  background: #002147;
  color: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}
.facility-card:hover { background: #1db3bb; transform: translateY(-8px) scale(1.05); }
.fac-icon { font-size: 40px; margin-bottom: 10px; }

/* ===============================
   PRODUCTS
================================ */
.products { background: #fff; padding: 60px 40px; text-align: center; }
.products-title { font-size: 28px; margin-bottom: 40px; font-family: Cambria, serif; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card p { margin: 0; padding: 15px; font-size: 16px; letter-spacing: 1px; background: #fafafa; }
.product-card:hover { transform: translateY(-10px); }

/* ===============================
   PAGE SECTIONS (Industrial / Internships)
================================ */
.page-section {
  padding: 60px 40px;
  margin: 20px;
  border-radius: 12px;
}

.section-title {
  font-size: 32px;
  font-family: Cambria, serif;
  text-align: center;
  margin-bottom: 10px;
  color: #1b2d70;
}

.section-sub {
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

/* ── Industrial ── */
.industrial-section { background: #f0f4ff; }

.industrial-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.overview-card {
  background: white;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.overview-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(27,45,112,0.15); }
.ov-icon { font-size: 40px; margin-bottom: 12px; }
.overview-card h3 { font-family: Cambria, serif; color: #1b2d70; margin: 8px 0 6px; }
.overview-card p  { font-size: 14px; color: #555; line-height: 1.5; }

.industrial-clients { text-align: center; margin-bottom: 50px; }
.industrial-clients h3 { font-family: Cambria, serif; color: #1b2d70; font-size: 22px; margin-bottom: 20px; }

.client-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge {
  background: #1b2d70;
  color: white;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
}

.industrial-projects h3,
.industrial-projects > h3 { font-family: Cambria, serif; color: #1b2d70; font-size: 22px; text-align: center; margin-bottom: 24px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.project-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card h4 { margin: 8px 0 6px; color: #002147; font-family: Cambria, serif; }
.project-card p  { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }

.proj-tag {
  background: #f4511e;
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
}

/* ── Internship Tabs ── */
.intern-section { background: #fff8f4; }

.intern-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  background: #e8e8e8;
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  transition: 0.3s;
}
.tab-btn.active { background: #1b2d70; color: white; }
.tab-btn:hover:not(.active) { background: #ddd; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.student-section h3 {
  font-family: Cambria, serif;
  color: #1b2d70;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

/* Student Table */
.table-wrap { overflow-x: auto; }

.student-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.student-table thead { background: #1b2d70; color: white; }
.student-table th { padding: 14px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.student-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.student-table tbody tr:hover { background: #f9f9ff; }
.student-table tbody tr:last-child td { border-bottom: none; }

.badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
}
.badge-status.completed { background: #e6f4ea; color: #2d7a3e; }
.badge-status.ongoing   { background: #fff4e0; color: #b56a00; }
.badge-status.upcoming  { background: #e8eaf6; color: #3949ab; }

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}

.cert-card {
  background: white;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #f4511e;
}
.cert-icon { font-size: 40px; margin-bottom: 10px; }
.cert-card h4 { margin: 6px 0 4px; font-family: Cambria, serif; color: #1b2d70; }
.cert-card p  { font-size: 14px; color: #555; margin: 0 0 8px; }
.cert-date { font-size: 12px; color: #999; font-family: 'Segoe UI', sans-serif; }

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 24px;
}

.faculty-card {
  background: white;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.faculty-card:hover { transform: translateY(-6px); }
.faculty-avatar { font-size: 50px; margin-bottom: 12px; }
.faculty-card h4 { font-family: Cambria, serif; color: #1b2d70; margin: 0 0 4px; font-size: 18px; }
.faculty-dept { font-size: 13px; color: #f4511e; font-weight: bold; margin: 0 0 10px; font-family: 'Segoe UI', sans-serif; }
.faculty-card p  { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 12px; }

/* ===============================
   FOOTER
================================ */
footer {
  background: #0ec9c6;
  color: white;
  text-align: center;
  padding: 15px;
  font-family: 'Times New Roman', serif;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  /* Topbar compact */
  .topbar { padding: 14px 16px; }
  .clg-logo { height: 60px; }
  .title-box h1 { font-size: 22px; letter-spacing: 1px; }
  .title-box span { font-size: 13px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav links slide-in drawer */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #1a1a1a;
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    padding: 70px 0 20px;
    overflow-y: auto;
    z-index: 1001;
    transition: right 0.3s ease;
    gap: 0;
  }

  .nav-links.open { right: 0; }

  .nav-item {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid #2a2a2a;
  }

  .dropdown { width: 100%; flex-direction: column; align-items: flex-start; }
  .dropdown-toggle { width: 100%; }

  .dropdown-menu {
    position: static;
    border-top: none;
    border-left: 3px solid yellow;
    background: #222;
    margin-left: 16px;
    border-radius: 0;
  }
  .dropdown-menu.open { display: block; }

  .sub-menu {
    position: static;
    border-left: 3px solid #f4511e;
    margin-left: 16px;
    border-radius: 0;
  }
  .sub-menu.open { display: block; }

  /* Sections */
  .about, .facilities { padding: 30px 20px; margin: 10px; }
  .page-section { padding: 40px 20px; margin: 10px; }
  .products { padding: 40px 20px; }

  /* Testimonial */
  .testi-box { gap: 15px; }
  .testi-text { font-size: 16px; }

  /* Table scroll */
  .student-table { font-size: 12px; }
  .student-table th, .student-table td { padding: 10px 12px; }

  .intern-tabs { flex-wrap: wrap; }
}

/* ===============================
   SEPARATE PAGES (Industrial, Internships, Students, Faculty)
================================ */

/* Page Hero Banner */
.page-hero {
  padding: 20px 40px;
  text-align: center;
  color: white;
}
.page-hero h2 {
  font-family: Cambria, serif;
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.page-hero p {
  font-family: 'Times New Roman', serif;
  font-size: clamp(14px, 2.5vw, 18px);
  margin: 0;
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 40px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #777;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #1b2d70; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #333; font-weight: 600; }

/* Section containers */
.ind-section {
  padding: 60px 40px;
}
.alt-bg { background: #f5f7ff; }

.ind-heading {
  font-family: Cambria, serif;
  font-size: 26px;
  color: #1b2d70;
  text-align: center;
  margin: 0 0 36px;
}

/* Active nav highlight */
.active-page { color: yellow !important; }
.active-sub  { color: #f4511e !important; font-weight: bold; }

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-box {
  background: white;
  border-radius: 12px;
  padding: 28px 40px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 140px;
  border-top: 4px solid #1b2d70;
}
.stat-num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: #1b2d70;
  font-family: Cambria, serif;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: #666;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 4px;
}

/* Subpage cards (internships.html) */
.subpage-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.subpage-card {
  background: white;
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  width: 280px;
  transition: 0.3s;
  border-bottom: 4px solid transparent;
}
.subpage-card:hover { transform: translateY(-8px); border-bottom-color: #1b2d70; }
.sp-icon { font-size: 52px; margin-bottom: 14px; }
.subpage-card h4 { font-family: Cambria, serif; font-size: 22px; color: #1b2d70; margin: 0 0 10px; }
.subpage-card p  { font-family: 'Times New Roman', serif; font-size: 15px; color: #555; line-height: 1.5; margin: 0 0 16px; }
.sp-link { color: #f4511e; font-family: 'Segoe UI', sans-serif; font-size: 14px; font-weight: 600; }

/* Faculty tags */
.faculty-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ftag {
  background: #eef1ff;
  color: #1b2d70;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* ── Responsive for new pages ── */
@media (max-width: 768px) {
  .ind-section { padding: 40px 20px; }
  .page-hero   { padding: 40px 20px; }
  .breadcrumb  { padding: 10px 20px; }
  .stat-box    { padding: 20px 28px; min-width: 110px; }
  .stat-num    { font-size: 28px; }
  .subpage-card { width: 100%; max-width: 320px; }
}

/* ── Nav separator (About/Contact on left | rest on right) ── */
.nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  margin: 0 8px;
  flex-shrink: 0;
}

/* ── Nav layout: left links | center main | right About/Contact ── */
.nav-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.nav-right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

@media (max-width: 768px) {
  .nav-right {
    position: static;
    flex-direction: column;
    width: 100%;
  }
}

/* ── About/Contact: hidden on desktop, visible only in hamburger menu ── */
.nav-hamburger-only {
  display: none;
}

@media (max-width: 768px) {
  .nav-hamburger-only {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
    padding-top: 8px;
  }
  /* Remove absolute positioning of nav-right if still present */
  .nav-right {
    position: static;
    flex-direction: column;
    width: 100%;
  }
}
