/* ---------------------------
   Maiduguri Capital School
   Homepage Stylesheet
   --------------------------- */

/* --- Root Variables --- */
:root {
  --primary: #1e6a8a; //#1e3a8a;       /* Deep blue for headings */
  --accent: #2563eb;        /* Bright blue accent */
  --background: #f8fafc;    /* Light background */
  --text: #1f2937;          /* Dark text */
  --muted: #64748b;         /* Muted gray text */
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: azure;
}

/* --- Global Elements --- */
h1, h2, h3, h4, h5 {
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; margin-top: 1.5em; }
h3 { font-size: 1.25rem; }
p, li {
  font-size: 1rem;
  margin-bottom: 1em;
}

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

a:hover {
  text-decoration: underline;
}

/* --- Header --- */
header {
  background: white;
  opacity: 1;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid;
}

.header-top, .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  //border: 1px solid #1e3a8a; ;
}

.logo-container img {
  width: 80px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 5px var(--shadow);
}

.header-title h1 {
  font-size: 1.75rem;
}

.header-title p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Mobile Menu Icon --- */
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  
}
.menu-items {
  position: relative;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 5px;
}

/* --- Hero Slideshow --- */
.hero-container {
  position: relative;
  overflow: hidden;
  height: 65vh;
  max-height: 700px;
}

.cta-button {
  position: absolute;
  top: 0;
  left: 4px;
  background: white;
  z-index: 2;
  
}

.link {
    background: linear-gradient(135deg, #14b8a6, #0d9488); /* soft teal gradient */
  color: #ffffff;
  
  font-weight: 600;
  padding: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 4px;
}
.nav {
  justify-content: center;
  background: azure;
}
.nav > a {
  background: linear-gradient(135deg, #14b8a6, #0d9488); /* soft teal gradient */
  color: #ffffff;
  padding: 4px 8px 4px 8px;
  border-radius: 4px;
}
.cta-button {
  background: linear-gradient(135deg, #14b8a6, #0d9488); /* soft teal gradient */
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9em 1.8em;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.cta-button:focus {
  outline: 2px solid #99f6e4;
  outline-offset: 3px;
}
.hero-container .hero {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-container .hero.active {
  opacity: 1;
  z-index: 1;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-container figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  text-align: center;
  padding: 0.75rem;
  font-size: 1rem;
}

/* --- Sections --- */
main section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section:nth-child(even) {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
}

/* --- Figures & Slideshows --- */
figure {
  margin: 1rem 0;
}

figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;

  display: flex;
  justify-content: center;   /* horizontal center (optional) */
  align-items: center;        /* vertical center */
}

/* Multiple images slideshow container */
.slideshow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* --- Lists --- */
ul {
  list-style: disc inside;
  padding-left: 1rem;
}

ul li {
  margin-bottom: 0.5em;
}

/* --- Articles --- */
article {
  margin-top: 1.5rem;
}

/* --- Gallery & Media --- */

/* --- Contact --- */
#contact a {
  font-weight: 500;
}

#contact iframe {
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
  margin-top: 1rem;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

footer a {
  color: #bfdbfe;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    text-align: center;
  }
  .logo-container img {
    width: 120px;
  }

  .hero-container {
    height: 50vh;
  }

  main section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  p { font-size: 0.95rem; }
}

img {
  width: 100%;
}

  hr {
    border: 0;
    height: 4px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(200, 200, 200, 0.75), rgba(0, 0, 0, 0));
}



#structure {
  background: #f9fafb;
  padding: 4rem 2rem;
  text-align: center;
}

#structure h2 {
  font-size: 2rem;
  //color: #0f766e;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

#structure h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

#structure ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
}

#structure li {
  background: #ffffff;
  padding: 2rem 1rem;
  border-radius: 1.2rem;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.15);
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-top: 5px solid #14b8a6;
}

#structure li:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
  border-top-color: #0d9488;
}

@media (max-width: 600px) {
  #structure {
    padding: 3rem 1rem;
  }

  #structure h2 {
    font-size: 1.6rem;
  }

  #structure li {
    font-size: 1rem;
  }
}


#structure li {
  padding: 2rem 1rem;
  border-radius: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-top: 5px solid transparent;
}

/* Nursery Section */
#structure li:nth-child(1), #structure li:nth-child(1) a{
  background: #fef3c7; /* soft warm yellow */
  color: #78350f;
  border-top-color: #f59e0b;
}

/* Primary Section */
#structure li:nth-child(2), #structure li:nth-child(2) a {
  background: #dbeafe; /* light blue */
  color: #1e3a8a;
  border-top-color: #2563eb;
}

/* Secondary Section */
#structure li:nth-child(3), #structure li:nth-child(3) a  {
  background: #e0f2f1; /* light teal green */
  color: #064e3b;
  border-top-color: #0d9488;
}
/* Secondary Section */
#structure li:nth-child(4), #structure li:nth-child(4)  a {
  background: #dbeafe; /* light blue */
  color: #1e3a8a;
  border-top-color: #2563eb;
}


#structure li:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}



#digitalization {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 5px solid #14b8a6;
}

#digitalization h2 {
  font-size: 2rem;
  color: #0f766e;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

#digitalization h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

#digitalization p {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.7;
}

#digitalization ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: grid;
  gap: 1.2rem;
}

#digitalization li {
  background: #ffffff;
  padding: 1.5rem 1.2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(13, 148, 136, 0.1);
  color: #0f172a;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 5px solid #14b8a6;
}

#digitalization li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
  border-left-color: #0d9488;
}

#digitalization li em {
  font-style: normal;
  font-weight: 600;
  color: #0d9488;
}

/* Optional: Figure styling if re-enabled later */
#digitalization figure {
  margin-top: 2.5rem;
  text-align: center;
}

#digitalization img {
  width: 100%;
  max-width: 700px;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#digitalization figcaption {
  font-size: 0.95rem;
  color: #475569;
  margin-top: 0.8rem;
}

@media (max-width: 600px) {
  #digitalization {
    padding: 3rem 1rem;
  }

  #digitalization h2 {
    font-size: 1.6rem;
  }

  #digitalization li {
    font-size: 1rem;
  }
}

.menu-container.show {
        transition: transform 0.2s ease-out;
        transform: scaleX(100%);
        
    }


  .menu-container {
    max-height: 100vh;
    position: absolute;
    right:0;
    z-index: 110;
    transform: scaleX(0);
    text-align: left;
    top: 35px:
    overflow: auto;
  background-color: rgb(200, 200, 200); // #1e1e1e;
  color: #ffffff;
  padding: 20px;
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: auto;
  }

.menu-container button#close {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 18px;
  float: right;
  cursor: pointer;
}

.menu-container hr {

  margin: 10px 0;
  border: 0;
  height: 4px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(200, 200, 200, 0.75), rgba(0, 0, 0, 0));

}

.menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-container li {
  overflow: auto;
  transition: background 0.3s, transform 0.2s;
 // margin: 12px 0;
  
}

.menu-container a {
  color: #80cbc4;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu-container a:hover {
  color: #4db6ac;
}

/* ---------- Menu Base ---------- */
.main-menu {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap; /* Mobile-friendly */
}

.main-menu li a {
  text-decoration: none;
  padding: 10px 18px;
  background: #1e6a8a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  display: inline-block;
  transition: 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ---------- Hover Effects ---------- */
.main-menu li a:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 600px) {
  .main-menu {
    flex-direction: column;
    gap: 0.8rem;
  }

  .main-menu li a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
  }
}

blockquote {
    padding: 1em;
    border-left: 4px solid #555;
    background: #f7f7f7;
    font-style: italic;
}


#contact {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

#contact i {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);

  border-radius: 50%;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

/* Hover effect */
#contact i:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Different brand colors on hover (optional) */
#contact i.fa-facebook-f { color: #1877f2; }
#contact i.fa-twitter { color: #1da1f2; }
#contact i.fa-youtube{ color: #dd0000; }

  #contact i.fa-instagram { color: #e1306c; }
#contact i.fa-whatsapp { color: #25d366; }
#contact i.fa-envelope { color: #ffdd57; }
  
  @media (max-width: 480px) {
  #contact i {
    font-size: 28px;
    width: 55px;
    height: 55px;
  }
}
  
  
  #arith {
   
  }

.footer-links {
  margin-top: 20px;
}

.footer-links h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links ul li a {
  color: #dbeafe; /* Light blue text */
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}