:root {
  --bg-1: #0f1724;
  --bg-2: #07122b;
  --card-1: #fff;
  --muted: #9aa7b8;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --black-1: #000;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

main { flex: 1; }

/* ===== Top Bar ===== */
.top-bar {
  background: #0f1724;
  color: #fff;
  font-size: 13px;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #fff;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--black-1);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 8px;
}

nav a:hover {
  background: rgba(0,0,0,0.08);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15,23,36,0.85), rgba(7,18,43,0.95)),
    url("../images/bg-image.webp") center/cover no-repeat;
}

/* Glow effect */
.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
}

/* Particle canvas */
#particles-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== Hero Content ===== */
.hero-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  z-index: 2;
  transform: translateY(-20px);
}

.hero-inner h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.controls {
  margin-bottom: 20px;
}

.controls div {
  font-size: 15px;
  color: #cbd5e1;
}

.back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}

/* ===== Cards Layout ===== */
.row1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.row1.three {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Cards ===== */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 18px;
  padding: 30px;
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(2,6,23,0.7);
  backdrop-filter: blur(12px);
  transition: all .25s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(2,6,23,0.9);
  border-color: rgba(124, 58, 237, 0.6);
}

.card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.card .desc {
  font-size: 14px;
  color: #9fb3c8;
}

/* ===== Icon Colors ===== */
.c-online .icon-wrap { background: linear-gradient(135deg,#06b6d4,#60a5fa); }
.c-offline .icon-wrap { background: linear-gradient(135deg,#f97316,#f43f5e); }
.c-engineer .icon-wrap { background: linear-gradient(135deg,#7c3aed,#06b6d4); }
.c-notengineer .icon-wrap { background: linear-gradient(135deg,#10b981,#34d399); }
.c-civil .icon-wrap { background: linear-gradient(135deg,#ef4444,#f97316); }
.c-electrical .icon-wrap { background: linear-gradient(135deg,#0284c7,#7c3aed); }
.c-mechanical .icon-wrap { background: linear-gradient(135deg,#f59e0b,#ef4444); }

.hidden { display: none; }

/* ===== Footer ===== */
footer {
  background: #0f1724;
  color: #9aa7b8;
  text-align: center;
  padding: 40px 20px;
}

/* ===== Marquee ===== */
.affiliation-marquee {
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 35s linear infinite;
}

.marquee-track img {
  height: 70px;
}

@keyframes scroll {
  100% { transform: translateX(-50%); }
}



.site-header {
  position: relative;
}
/* ===== Responsive ===== */
@media (max-width: 992px) {
  .top-bar { display: none; }

  nav {
    display: none;
  }

  .row1,
  .row1.three {
    grid-template-columns: 1fr;
  }

  .hero-inner h1 {
    font-size: 26px;
  }

  .card {
    padding: 20px;
    min-height: 120px;
  }

  .card .icon-wrap {
    width: 50px;
    height: 50px;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #000; 
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #mainNav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 69px;
    right: 14px;
    background: #111;
    width: 40%;
    padding: 15px;
    border-radius: 23px;
  }

  #mainNav.active {
    display: flex;
  }
  
  #mainNav a {
      color: #fff;
    }
}

.call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #28a745;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.site-header {
  position: relative;
}

.menu-toggle {
  position: absolute;
  right: 20px;
  top: 20px;
}

#mainNav {
  z-index: 999;
}

.card .cta {
  margin-top: 6px;
  font-size: 13px;
  color: #60a5fa;
  font-weight: 600;
}

.skip-btn {
  margin-left: 10px;
  font-size: 14px;
  color: #fff;
  text-decoration: none !important;
  font-weight: 600;
}

.skip-btn:hover {
  text-decoration: underline;
}

/*--- HOMEPAGE STYLES ENDS ---*/

/*--- ABOUT US STARTS ---*/

.about-page .hero-section {
  text-align: center;
  padding: 110px 60px 110px;
}

.about-page .hero-section h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
}

.about-page .breadcrumbs {
  margin-top: 10px;
  color: #ccc;
  font-size: 14px;
}

.about-page .breadcrumbs a {
  color: #60a5fa;
  text-decoration: none;
}

.about-page .section-light {
  background: #fff;
  padding: 70px 20px;
  color: #111;
}

.about-page .section-dark {
  background: linear-gradient(135deg,#0b1b3a,#09142b);
  padding: 70px 20px;
  color: #fff;
}

.about-page .container {
  max-width: 1100px;
  margin: auto;
}

.about-page .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media(max-width:768px){
  .about-page .grid-2 {
    grid-template-columns: 1fr;
  }
}

.about-page .logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.about-page .logo-grid img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

.about-page .hero-section {
  min-height: 230px;   
  padding: 60px 20px;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media(max-width:768px){
  .about-page .hero-section {
    min-height: 200px;
    padding: 50px 15px;
  }
}

.about-row-fix {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* prevents stacking */
}

.about-text {
    flex: 0 0 66.666%;
    max-width: 66.666%;
    padding: 60px;
    text-align: justify;
}

.about-img {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .about-row-fix {
        flex-wrap: wrap;
    }
    .about-text,
    .about-img {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/*-- COURSES --*/

.course-title {
  margin: 40px 0 20px;
  font-size: 24px;
}

.course-grid {
  display: grid;
  gap: 22px;
}

/* Desktop (large screens) → 4 per row */
@media (min-width: 1200px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Laptop → 3 per row */
@media (max-width: 1199px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet → 2 per row */
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile → 1 per row */
@media (max-width: 480px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  display: block;
  text-decoration: none;
}

.course-card img {
  width: 100%;
  border-radius: 6px;
}

.course-card h3 {
  font-size: 16px;
  margin-top: 8px;
  color: #111;
}

.section-light {
  background: #fff;
  padding: 60px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.course-title {
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: 700;
}

.course-section {
    min-height:190px;
    text-align: center;
    padding: 110px 60px 110px;
}

.course-section .breadcrumbs {
  margin-top: 10px;
  color: #ccc;
  font-size: 14px;
}

.course-section .breadcrumbs a {
  color: #60a5fa;
  text-decoration: none;
}

/* ===== CONTACT SECTION ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #111;
}

.contact-card p {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-card span {
  min-width: 18px;
  font-size: 15px;
}

.contact-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===== MAP SECTION ===== */

.map-section {
  padding: 60px 20px;
  background: #fff;
}

.map-container {
  max-width: 1200px;
  margin: auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 320px;
  }
}

/* ===== MAP SECTION ===== */

.map-section {
  background: #fff;
  padding: 60px 20px;
}

.map-container {
  max-width: 1200px;
  margin: 20px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  .map-container iframe {
    height: 320px;
  }
}