﻿/* St John Ambulance Nigeria - Simple Styles */

@font-face {
font-family: Roboto;
src: url(roboto-serif.woff2);
}

@font-face {
font-family: Helvetica;
src: url(Helvetica.woff2);
}

:root {
--sja-green: #0b4a2f;
--sja-accent: #2e8b57;
--muted: #6b6b6b;
--radius: 10px;
--base-font: 16px;
--heading-scale: 1.2;
}

* {
box-sizing: border-box;
}

body {
background: #f7f7f7;
color: #222;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: var(--base-font);
line-height: 1.5;
margin: 0;
padding: 0;
}

.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}

.sja-header {
background: linear-gradient(180deg, #ffffff, #f3f7f3);
border-bottom: 4px solid var(--sja-green);
}

.sja-header .container {
align-items: center;
display: flex;
gap: 18px;
padding: 16px 20px;
}

.brand {
color: var(--sja-green);
font-size: 18px;
font-weight: 700;
text-decoration: none;
}

.main-nav {
display: flex;
gap: 14px;
margin-left: auto;
}

.main-nav a {
border-radius: 4px;
color: var(--sja-green);
padding: 6px 8px;
text-decoration: none;
}

.main-nav a.active,
.main-nav a:hover {
background: var(--sja-green);
color: #fff;
}

.main-content {
padding: 36px 20px;
}

h1, h2, h3, h4, h5, h6 {
color: var(--sja-green);
text-align: center;
}

a {
color: var(--sja-green);
text-decoration: underline;
}

a:hover {
color: var(--sja-accent);
}

.btn {
background: var(--sja-green);
border: 0;
border-radius: 6px;
color: #fff;
cursor: pointer;
display: inline-block;
padding: 8px 12px;
text-decoration: none;
font-weight: 600;
margin-top: 10px;
}

.btn:hover {
opacity: 0.8;
}

.btn.download {
font-size: 13px;
padding: 8px 14px;
}

.training-summary {
background: #fff;
border-radius: var(--radius);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
margin-top: 28px;
padding: 16px;
}

.training-summary h2 {
margin-top: 0;
}

.action-points {
margin: 10px 0 0;
padding-left: 18px;
list-style-type: square;
}

.training-gallery {
margin-top: 28px;
}

.slideshow-container {
background: #000;
border-radius: var(--radius);
margin: 12px auto 18px;
max-width: 80%;
overflow: hidden;
position: relative;
aspect-ratio: 16 / 9;
min-height: 267px;
}

.mySlides {
display: none;
width: 100%;
height: 100%;
overflow: hidden;
}

.mySlides img {
display: block;
height: 100%;
width: 100%;
object-fit: cover;
object-position: center;
opacity: 0.95;
transform: scale(1);
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
cursor: pointer;
will-change: transform, opacity;
}

.mySlides img:hover {
transform: scale(1.08);
opacity: 1;
}

.numbertext {
background: rgba(0, 0, 0, 0.5);
border-radius: 0 0 4px 0;
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}

.prev, .next {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 3px;
color: #fff;
cursor: pointer;
font-size: 18px;
font-weight: bold;
padding: 16px;
position: absolute;
top: 50%;
transform: translateY(-50%);
user-select: none;
}

.next {
right: 0;
}

.prev {
left: 0;
}

.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.8);
}

.dot-container {
padding: 12px 0;
text-align: center;
}

.dot {
background-color: #bbb;
border-radius: 50%;
cursor: pointer;
display: inline-block;
height: 12px;
margin: 0 4px;
width: 12px;
}

.dot.active, .dot:hover {
background-color: var(--sja-green);
}

.gallery-grid {
display: grid;
gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
margin-top: 16px;
}

.gallery-grid img {
border-radius: var(--radius);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
cursor: pointer;
display: block;
height: 140px;
object-fit: cover;
width: 100%;
}

.gallery-grid img:hover {
opacity: 0.8;
transform: scale(1.05);
}

.lead {
color: var(--muted);
margin-top: -6px;
}

.event-details {
text-align: center;
margin: 16px auto;
}

.event-details p {
margin: 8px 0;
}

.table-container {
margin-top: 20px;
overflow-x: auto;
}

.cert-table {
background: #fff;
border-collapse: collapse;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
width: 100%;
}

.cert-table th, .cert-table td {
padding: 14px 16px;
text-align: center;
vertical-align: middle;
}

.cert-table th {
background: var(--sja-green);
color: #fff;
font-size: 15px;
font-weight: 600;
}

.cert-table td {
border-bottom: 1px solid #eee;
}

.cert-table tr:hover {
background: #f4f4f4;
}

.col-num {
width: 64px;
}

.sja-footer {
background: linear-gradient(0deg, #f3f7f3, #ffffff);
border-top: 4px solid var(--sja-green);
color: var(--sja-green);
font-weight: 500;
margin-top: 40px;
padding: 24px 0;
text-align: center;
}

.fade {
animation: fade 1s;
}

@keyframes fade {
from { opacity: 0.4; }
to { opacity: 1; }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
:root {
--base-font: 14px;
--radius: 6px;
}

.container {
padding: 0 12px;
}

.sja-header .container {
flex-direction: column;
align-items: flex-start;
padding: 12px;
}

.brand {
font-size: 16px;
}

.main-nav {
width: 100%;
gap: 10px;
}

.main-nav a {
padding: 5px 8px;
font-size: 14px;
}

.main-content {
padding: 20px 12px;
}

h1 {
font-size: 1.5em;
}

h2 {
font-size: 1.25em;
}

.btn {
padding: 7px 10px;
font-size: 14px;
}

.slideshow-container {
max-width: 100%;
min-height: 200px;
}

.numbertext {
font-size: 11px;
padding: 6px 8px;
}

.prev, .next {
font-size: 16px;
padding: 10px;
}

.gallery-grid {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 6px;
}

.gallery-grid img {
height: 100px;
}

.cert-table th, .cert-table td {
padding: 8px;
font-size: 13px;
}

.col-num {
width: 40px;
}
}

/* Mobile Medium (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
:root {
--base-font: 15px;
--radius: 8px;
}

.sja-header .container {
flex-direction: column;
align-items: flex-start;
}

.main-nav {
width: 100%;
}

h1 {
font-size: 1.6em;
}

h2 {
font-size: 1.3em;
}

.slideshow-container {
min-height: 250px;
}

.gallery-grid {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 8px;
}

.gallery-grid img {
height: 120px;
}

.cert-table th, .cert-table td {
padding: 10px;
}
}

/* Tablet (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
:root {
--base-font: 15px;
}

h1 {
font-size: 1.75em;
}

h2 {
font-size: 1.4em;
}

.slideshow-container {
min-height: 300px;
}

.gallery-grid {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
}

/* Tablet Large / Small Desktop (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
:root {
--base-font: 15px;
}

h1 {
font-size: 1.875em;
}

h2 {
font-size: 1.5em;
}

.slideshow-container {
min-height: 350px;
}
}

/* Desktop / Laptop (992px - 1199px) */
@media (min-width: 992px) {
:root {
--base-font: 15px;
}

h1 {
font-size: 2em;
}

h2 {
font-size: 1.5em;
}

.slideshow-container {
min-height: 400px;
}

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

.gallery-grid img {
height: 180px;
}

.cert-table th, .cert-table td {
padding: 14px 16px;
}
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
:root {
--base-font: 16px;
}

.container {
max-width: 1200px;
}

h1 {
font-size: 2.25em;
}

h2 {
font-size: 1.75em;
}

.slideshow-container {
min-height: 450px;
}

.training-summary, .training-gallery {
padding: 0 20px;
}
}
