/* ============================================================
   Metadise Academy – Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ----- Reset & base ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent:    #f59e0b;
  --color-bg:        #f8fafc;
  --color-surface:   #ffffff;
  --color-text:      #1e293b;
  --color-muted:     #64748b;
  --color-border:    #e2e8f0;
  /* Header-specific palette (from poster) */
  --header-bg:       #ffffff;
  --header-primary:  #0A4FD8;
  --header-accent:   #1977FF;
  --header-text:     #0f1724;
  --header-cta:      #1977FF;
  --header-cta-text: #ffffff;
  --radius:          0.5rem;
  --shadow:          0 4px 6px -1px rgb(0 0 0 / .1),
                     0 2px 4px -2px rgb(0 0 0 / .1);
  --transition:      0.25s ease;
  --max-width:       1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--color-bg);
  background-image: 
    linear-gradient(rgba(0,0,0, 0.6), rgba(248, 250, 252, 0.9)),
    url('../../assets/images/body-background.png');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-text);
}

/* h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
.nav__logo,
.navbar__brand,
.section-title {
  font-family: 'Orbitron', sans-serif;
}
  */

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ----- Layout helpers -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ----- Header / Navigation --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav__links a {
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav__cta {
  background-color: var(--color-primary);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.nav__cta:hover {
  background-color: var(--color-primary-dark) !important;
}

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #1e293b;
}

.btn--primary:hover {
  background-color: #d97706;
}

.btn--outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  margin-left: 0.75rem;
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.15);
}

/* ----- Section shared styles ------------------------------- */
section {
  padding-block: 4rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

/* ----- Courses Section ------------------------------------- */
.courses {
  background-color: var(--color-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgb(0 0 0 / .15);
}

.card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: var(--color-border);
}

.card__body {
  padding: 1.25rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background-color: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

/* ----- Features / About Section ---------------------------- */
.features {
  background-color: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-item__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-item__text {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ----- Blank Section Placeholders -------------------------- */
.event-highlight,
.portfolios {
  display: flex;
  align-items: center;
}

.section-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-align: center;
}

/* ----- Partners Section ------------------------------------ */
.partners {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
}

.partners .section-title,
.partners .section-subtitle {
  color: #fff;
}

.partners .section-subtitle {
  color: rgba(255, 255, 255, 0.76);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.partner-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.partner-logo:nth-child(2) img {
  filter: none;
}

.partner-logo:nth-child(3) img {
  filter: none;
}

@media (min-width: 900px) {
  .partners-grid {
    gap: 1.25rem;
  }

  .partner-logo {
    min-height: 84px;
  }
}

/* ----- Contact Section ------------------------------------- */
.contact {
  background-color: var(--color-bg);
}

.contact-form {
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  align-self: flex-end;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.form-submit:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ----- Toast notification ---------------------------------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #22c55e;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Footer ---------------------------------------------- */
.site-footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding-block: 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

/* ----- Welcome Section ------------------------------------ */
.welcome {
  position: relative;
  padding-block: 3.5rem;
  color: #fff;
  text-align: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23333'/><stop offset='1' stop-color='%23000'/></linearGradient></defs><rect width='100%25' height='100%25' fill='url(%23g)'/><g fill='%23bada55' fill-opacity='0.06'><path d='M0 300 C 300 200, 900 400, 1200 300 L1200 400 L0 400 Z'/></g></svg>");
  background-size: cover;
  background-position: center;
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,0.45), rgba(3,7,18,0.55));
  z-index: 0;
}

.welcome .container {
  position: relative;
  z-index: 1;
  padding-block: 1rem;
}

.welcome-title {
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.welcome-text {
  max-width: 900px;
  margin: 0.5rem auto 0;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .welcome {
    padding-block: 5rem;
  }
  .welcome-title {
    font-size: 2.75rem;
  }
  .welcome-text {
    font-size: 1.125rem;
  }
}

/* ----- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 57px; /* approx header height */
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    gap: 1rem;
    z-index: 99;
    box-shadow: var(--shadow);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .btn--outline {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ============================================================
   Metadise Academy – About Page
   Blue & White Theme
   ============================================================ */


/* ===================== ABOUT HERO ===================== */

.about-hero {
  position: relative;
  min-height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: url("../assets/images/about-hero.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.82),
      rgba(15, 23, 42, 0.88)
    );
}

.about-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-inline: 1.25rem;
}

.about-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.about-hero__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

/* ===================== About Us Page ===================== */
/* ===================== HISTORY ===================== */

.about-history {
  background-color: #ffffff;
  padding-block: 6rem;
}

.about-history__container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 4rem;
}

.about-history__image img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.about-history__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.about-history__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-align: justify;
}


/* ===================== VISION & MISSION ===================== */

.vision-mission {
  background-color: var(--color-bg);
  padding-block: 5rem;
  text-align: center;
}

.vision-mission__container {
  max-width: 1000px;
}

.vision-mission__block {
  margin-bottom: 3rem;
}

.vision-mission__block:last-child {
  margin-bottom: 0;
}

.vision-mission h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.vision-mission p {
  max-width: 850px;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-text);
}


/* ===================== TEAM ===================== */

.team {
  background-color: #ffffff;
  padding-block: 5.5rem;
  text-align: center;
}

.team__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.team__subtitle {
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.team-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.2);
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background-color: var(--color-border);
}

.team-card__body {
  padding: 1.5rem;
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.team-card p {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.whatsapp-floating_button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    
    /* Look & Feel */
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* WHATSAPP BUTTON */
.whatsapp-floating_button:hover {
    transform: scale(1.1);
    color: white; /* Prevent link color change */
    text-decoration: none; /* Prevent underline on hover */
}

/* Hide the text "WhatsApp" and only show the icon for a cleaner look */
.whatsapp-floating_button span {
    display: none;
}

.whatsapp-floating_button i {
    font-size: 32px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .about-history__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-history__image img {
    height: 340px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 250px;
  }

  .about-history,
  .vision-mission,
  .team {
    padding-block: 4rem;
  }

  .about-history__image img {
    height: 260px;
    border-radius: 1rem;
  }

  .about-history__content h2,
  .vision-mission h2,
  .team__title {
    text-align: center;
  }

  .about-history__content p {
    font-size: 1rem;
    text-align: left;
  }

  .vision-mission p,
  .team__subtitle {
    font-size: 1rem;
  }

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

  .team-card img {
    height: 280px;
  }
}

/* ===================== STICKY FOOTER ===================== */
html, body {
  height: 100%;
}

/* Make the main page content grow to push footer down. 
   Include common main selectors and the calendar page. */
main, .site-main, .calendar-page {
  flex: 1 0 auto;
}