/* FULL REBUILT style.css – synchronised with index.html */

:root{
  --teal:#2ec7c0;--aquamarine:#77e0d8;--navy:#02203c;--bg:#a0a0a0;
  --text:#152028;--muted:#66757a;
  --heading-font:'Calibri', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
  --body-font:   'Calibri', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--body-font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}

/* HEADER */
.site-header{text-align:center;padding:3.2rem 1rem 2.2rem;color:white;
  background:linear-gradient(135deg,var(--aquamarine)0%,var(--navy)100%);
  position:relative}
.logo{width:110px;margin:0 auto .8rem;display:block;border-radius:8px}
/* .site-title{margin:0;font-size:2rem;font-weight:700} */
.site-tag{font-size:1rem;margin-top:.4rem;opacity:.95}

/* NAV */
/* Hamburger icon: hidden on desktop, shown on small screens */
.hamburger {
  display: none; /* hidden by default */
  position: absolute;
  top: 14px;
  right: 14px;
  background: 0;
  border: 0;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1000;
}

/* Primary nav: desktop layout */
.primary-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  font-size: 1.1rem; /* increased font size */
}

.primary-nav a {
  color: white;
  text-decoration: none;
  padding: .4rem .8rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 1.1rem;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, .1);
}

/* Mobile layout: hide desktop nav and show hamburger */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* show hamburger */
  }

  .primary-nav {
    display: none; /* hide desktop nav */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    padding-top: 5rem;
    background: var(--navy);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
    z-index: 999;
  }

  .primary-nav.mobile {
    display: flex !important; /* show when hamburger clicked */
  }

  .primary-nav.mobile a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 1.2rem;
  }
}

/* MAIN */
main{max-width:900px;margin:1.6rem auto;padding:0 1rem 3rem}
.section{background:white;margin:1.4rem 0;padding:1.4rem;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.06);scroll-margin-top:120px}
.section h2 {
  margin-top:0;
  font-family:var(--heading-font);
  font-size:1.5rem;
  /* remove color property */
}

/* FOOTER */
.site-footer{text-align:center;padding:1.6rem;background:var(--navy);color:white;margin-top:2rem}

/* RESPONSIVE */
@media(max-width:899px){.hamburger{display:block}.primary-nav{display:none}.form-row{flex-direction:column}.logo{width:100px}}
@media(min-width:900px){.section{scroll-margin-top:100px}} style.css */

h2 {
  color: var(--navy) !important;
  font-family: var(--heading-font);
}

p, li {
  line-height: 1.3;
}

p {
  margin-bottom: 1.3rem;
}

li {
  margin-bottom: 1.0rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* On small screens */
@media (max-width: 600px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* container grid for certificates */

.certificate-grid {
  display: grid;
  /* Automatically fits columns based on 300px min-width */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #f9f9f9;
}

.cert-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cert-preview img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Uniform height for all previews */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.cert-info {
  padding: 1.5rem;
  text-align: center;
}

.cert-info h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Button Styles */
.btn-view, .btn-download {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-view {
  background-color: #e9ecef;
  color: #495057;
}

.btn-download {
  background-color: #007bff;
  color: #ffffff;
}

.btn-view:hover, .btn-download:hover {
  opacity: 0.85;
}
