/* 
  Cosmas Education Consultancy - Main Stylesheet
  Mobile-first, responsive, clean and modern design
*/

:root {
  --blue: #0056d6;
  --white: #ffffff;
  --light: #f4f4f4;
  --text: #222222;
  --muted: #555555;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* nav animation */
.nav-anim {
  position: relative;
}
.nav-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #4f46e5;
  transition: width 0.3s ease;
}
.nav-anim:hover::after {
  width: 100%;
}

/* Logo Float Animation */
.logo-float {
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo {
  width: 200px; height: 56px; border-radius: 8px;
  object-fit: cover; display: block;
}
.brand .name { font-weight: 700; font-size: 18px; color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {  color: var(--text); font-weight: 500; text-decoration: none; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.cta:hover { opacity: 0.9; text-decoration: none; }

.menu-toggle { display: none; border: none; background: transparent; font-size: 24px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(0,86,214,0.08), rgba(0,86,214,0.02));
  padding: 40px 0 24px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hero h1 { font-size: 28px; margin: 0; color: var(--text); }
.hero p { color: var(--muted); margin: 8px 0 16px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.btn.secondary { background: #0a7cff; }
.btn.outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }

/* Sections */
.section { padding: 28px 0; }
.section-title { font-size: 22px; margin: 0 0 12px; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.icon { width: 42px; height: 42px; border-radius: 8px; background: var(--light); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.icon img { width: 32px; height: 32px; }

/* Lists */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 6px 0; border-bottom: 1px dashed #e6e6e6; }
ul.clean li:last-child { border-bottom: none; }

/* Testimonials */
.testimonial { display: flex; gap: 12px; align-items: flex-start; }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.quote { font-style: italic; }

/* Updates */
.update-card h4 { margin: 0 0 6px; }
.update-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* Blog */
.post-card img { width: 100%; border-radius: 8px; }
.post-meta { color: var(--muted); font-size: 13px; margin: 8px 0; }

/* Forms */
.form {
  background: var(--white);
  border: 1px solid #e5e7eb; /* lighter, modern border */
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  background: #fafafa;
  transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1; /* indigo highlight */
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form .actions {
  margin-top: 10px;
}

/* Larger screens → 2-column layout */
@media (min-width: 700px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* message field stays full width */
  .form-group:nth-child(5) {
    grid-column: span 2;
  }
}


.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; }
.alert.success { background: #e8f3ff; color: #07407a; border: 1px solid #cfe5ff; }
.alert.error { background: #ffe8e8; color: #7a0707; border: 1px solid #ffcece; }

/* Footer */
.site-footer { background: var(--light); margin-top: 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
.footer-col h4 { margin: 0 0 8px; }
.copyright { padding: 12px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Desktop */
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .menu-toggle { display: none; }
}

/* Small screens nav */
@media (max-width: 767px) {
  .nav { position: relative; }
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 48px; right: 0; background: var(--white); border: 1px solid #eee; border-radius: 8px; padding: 12px; flex-direction: column; min-width: 200px; }
  .nav-links.show { display: flex; }
}




/* Animations about page */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.7s ease-out forwards;
}





