/* =========================
   VARIABLES & COLORS
========================= */
:root {
  --primary: #63bcbc;
  --accent: #c6b4e3;
  --gradient: linear-gradient(90deg,#63bcbc, #c6b4e3);
  --dark: #084f73;
  --text-dark: #222;
  --text-light: #666;
  --card-bg: #ffffff;
  --radius: 10px;

  /* reveal */
  --reveal-translate: 24px;
  --reveal-duration: 0.9s;
}

/* Dark-mode variables (overrides) */
body.dark-mode {
  --primary: #3aa3a3;
  --accent: #7b64a3;
  --gradient: linear-gradient(90deg,#2b6b6b,#6f5aa6);
  --dark: #052633;
  --text-dark: #e8eef6;
  --text-light: #bfc7d0;
  --card-bg: #0f1316;
}

#centreName{
	font-size: 2em;
	font-weight: bold;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", "Poppins", sans-serif;
  background: #f5f7fa;
  color: var(--text-dark);
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden; /* remove horizontal scroll */
  transition: background 0.35s ease, color 0.35s ease;
}

/* adjust background in dark-mode */
body.dark-mode {
  background: #071018;
}

/* =========================
   WRAPPER
========================= */
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
}

/* =========================
   HEADER
========================= */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  padding: 10px 16px;
}

header .title {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

header .subtitle {
  font-size: 14px;
  color: white;
  opacity: 0.9;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.25s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

/* language and small buttons */
.lang-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: 0.25s;
  margin-left: 8px;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* =========================
   HERO
========================= */
.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 45px 0;
}

.hero-text h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-dark);
}

.hero-img img {
  width: 180px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.2));
}

/* Buttons */
.btn {
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--gradient);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(115, 215, 215, 0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(115, 215, 215, 0.6);
}

.btn.ghost {
  background: white;
  color: var(--dark);
  border: 2px solid var(--primary);
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* =========================
   SECTIONS
========================= */
.section {
  margin-top: 45px;
}

/* =========================
   CARDS
========================= */
.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--card-bg), var(--card-bg)),
    var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: 0.3s ease;
}

body.dark-mode .card {
  background: rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.03);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

h3{
	font-weight: bold;
	color: #749fd0
}

h4{
	font-weight: bold;
	color: #8a75a7;
}

/* =========================
   GRID (COURSES)
========================= */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid a {
  display: inline-block;
  margin-top: 10px;
  color: var(--dark);
  font-weight: bold;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.25s;
}

.grid a:hover {
  background: var(--gradient);
  color: white;
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  border: 3px solid #c6b4e3; ;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
}

.gallery img:hover {
  transform: scale(1.07) rotate(1deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =========================
   CONTACT FORM
========================= */
.contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 350px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 2px solid #ddd;
  font-size: 14px;
  transition: 0.25s;
}

body.dark-mode input,
body.dark-mode textarea {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-dark);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(198, 180, 227, 0.5);
  outline: none;
}

textarea {
  height: 130px;
}

.muted {
  color: #777;
}

body.dark-mode .muted {
  color: var(--text-light);
}

#kankoor {
  font-weight: bold;
  color:#1507d1
}

.social-links a {
  display: inline-block;
  gap: 8px;
  margin-right: 30px;
}

.social-links img {
  width: 32px;
  height: 32px;
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 45px;
  text-align: center;
  background-color: #749fd0;
  padding: 20px 0;
  color: white;
  border-radius: 12px;
}

body.dark-mode footer {
  background-color: rgba(255,255,255,0.04);
  color: var(--text-dark);
}

/* =========================
   REVEAL ANIMATION (scroll)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-translate));
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* tiny stagger helper for gallery items */
.gallery img.reveal {
  transition-delay: 0.06s;
}
.gallery img.reveal.visible:nth-child(1) { transition-delay: 0s; }
.gallery img.reveal.visible:nth-child(2) { transition-delay: 0.03s; }
.gallery img.reveal.visible:nth-child(3) { transition-delay: 0.06s; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    justify-content: center;
  }
}

/* Brochure Grid */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.brochure-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}

.brochure-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.brochure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.brochure-card:hover img {
  transform: scale(1.08);
}




