* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f6f9;
  padding-top: 110px; /* header height ke hisab se adjust */
}


/* Header */
.header {
  background: #0d5aa7;
  color: white;
  padding: 15px 20px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}


.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  width: 70px;
}

.menu {
  margin-top: 8px;
  text-align: center;
}

.menu a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  font-weight: 500;
}


/* Cards Section */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}


footer {
  text-align: center;
  padding: 20px;
  color: #555;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .menu {
    display: none;
  }
}


/* ===== CONTACT PAGE ===== */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 25px;
  padding: 110px 30px 30px; /* header space */
  max-width: 1200px;
  margin: auto;
}

/* LEFT SIDE CARD */
.contact-left {
  background: #f3f3f3;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dev-photo {
  width: 170px;
  border-radius: 12px;
  border: 3px solid #2b6edc;
  margin-bottom: 10px;
}

.contact-left h2 {
  margin-top: 10px;
  font-size: 18px;
}

.contact-left h3 {
  margin-top: 15px;
  margin-bottom: 5px;
}

.contact-left p {
  font-size: 14px;
  color: #444;
}

/* Buttons */
.buttons {
  margin-top: 12px;
}

.buttons button {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  margin: 5px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
}

.buttons button:nth-child(1) {
  background: #2b6edc;
}

.buttons button:nth-child(2) {
  background: #25D366;
}

.buttons button:nth-child(3) {
  background: #e74c3c;
}

/* Social Icons */
.social {
  margin-top: 12px;
}

.social img {
  width: 22px;
  margin: 0 6px;
}

/* RIGHT SIDE */
.contact-right {
  background: #f3f3f3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-right h2 {
  margin-bottom: 10px;
}

/* MAP */
.contact-right iframe {
  border-radius: 6px;
  border: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 100px 15px 20px;
  }
}


/* ===== PAGE CONTENT PROFESSIONAL STYLE ===== */

.page-content {
  max-width: 900px;
  margin: 120px auto 40px; /* header se niche spacing */
  background: #f5f6f8;
  padding: 35px 40px;
  border-radius: 12px;
  line-height: 1.9;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  color: #333;
}

/* Heading Style */
.page-content h2 {
  font-size: 26px;
  margin-bottom: 18px;
  color: #0d5aa7;
  border-left: 5px solid #0d5aa7;
  padding-left: 12px;
}

/* Paragraph Style */
.page-content p {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .page-content {
    margin: 110px 15px 25px;
    padding: 25px 20px;
  }

  .page-content h2 {
    font-size: 22px;
  }

  .page-content p {
    font-size: 15px;
  }
}


/* ===== MENU PROFESSIONAL STYLE ===== */

.menu a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  margin: 0 14px;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.3s ease;
}

/* Smooth underline animation */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffd54f;
  transition: width 0.3s ease;
}

/* Hover effect */
.menu a:hover {
  color: #ffd54f;
}

.menu a:hover::after {
  width: 100%;
}



/* ===== HEADER LAYOUT ===== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* important */
}

/* MENU DEFAULT */
.menu {
  display: flex;
  gap: 15px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  .menu {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap; /* line break allow */
  }

  .menu a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .logo-area h1 {
    font-size: 20px;
  }
}


/* Hamburger hidden desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile menu style */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    width: 220px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .menu a:last-child {
    border-bottom: none;
  }
}


.menu a {
  color: #000;      /* black color */
  font-weight: 600; /* bold */
  text-decoration: none;
}


/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: #000;
}

/* Mobile style */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    width: 100%;
    background: #1e5fa3;
    flex-direction: column;
    text-align: center;
  }

  .menu a {
    display: block;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .menu.show {
    display: flex;
  }

}

/* SUBJECT PAGE */

.subject-container{
  padding:120px 20px 40px;
  text-align:center;
}

.subject-container h2{
  font-size:28px;
  margin-bottom:30px;
}

.subject-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
  max-width:900px;
  margin:auto;
}

.subject-card{
  background:white;
  padding:40px 20px;
  border-radius:14px;
  box-shadow:0 4px 15px rgba(0,0,0,0.08);
  transition:0.3s;
  cursor:pointer;
}

.subject-card h3{
  font-size:22px;
}

.subject-card:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
