/* -------------------------------------------------
   Global reset & base typography
   ------------------------------------------------- */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height:1.6;
    background:#fafafa;
    color:#333;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* -------------------------------------------------
   Colour palette (bright greys + accent)
   ------------------------------------------------- */
:root{
    --primary: linear-gradient(135deg, #4f7efe, #00f2fe);          /* Accent – bright blue */
    --bg-header:#e0e0e0;        /* Light grey header/footer */
    --bg-card:#ffffff;          /* White cards for contrast */
    --bg-section:#433d3d;       /* Slightly darker section background */
    --text-dark:#222;
    --text-muted:#555;
}

/* -------------------------------------------------
   Header / Hero
   ------------------------------------------------- */
header{
    background: var(--primary);
    padding:2rem 1rem;
    text-align:center;
    border-bottom:1px solid #ccc;
}
header h1{
    font-size:clamp(2rem,6vw,3rem);
    color:var(--primary);
    margin-bottom:.5rem;
}
header p{
    color:var(--text-muted);
}

/* -------------------------------------------------
   Main layout
   ------------------------------------------------- */
main{
    flex:1;
    max-width:1100px;
    margin:2rem auto;
    padding:0 1rem;
}

/* Card‑style containers used throughout */
.card{
    background:var(--bg-card);
    border-radius:.8rem;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    padding:1.5rem;
    margin-bottom:1.5rem;
}

/* Section titles */
section > h2{
    margin-bottom:.75rem;
    color:var(--primary);
    font-size:1.5rem;
}

/* -------------------------------------------------
   Courses grid
   ------------------------------------------------- */
.courses{
    display:grid;
    gap:1.5rem;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

/* -------------------------------------------------
   Instructor cards
   ------------------------------------------------- */
.instructors{
    display:grid;
    gap:1.5rem;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.instructor{
    text-align:center;
}
.instructor img{
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:.5rem;
}

/* -------------------------------------------------
   Pricing table
   ------------------------------------------------- */
.pricing{
    display:grid;
    gap:1.5rem;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.plan{
    border:2px solid #002394;
    border-radius:.8rem;
    padding:1.5rem;
    text-align:center;
    background:var(--bg-card);
}
.plan h3{
    margin-bottom:.5rem;
    color:var(--primary);
}
.plan .price{
    font-size:2rem;
    margin:.5rem 0;
}

/* -------------------------------------------------
   Contact form
   ------------------------------------------------- */
form{
    display:flex;
    flex-direction:column;
    gap:.75rem;
}
input, textarea{
    padding:.75rem;
    border:1px solid #ccc;
    border-radius:.4rem;
    font:inherit;
}
button{
    background:var(--primary);
    color:#fff;
    border:none;
    padding:.75rem 1.25rem;
    border-radius:.4rem;
    cursor:pointer;
    font-weight:600;
    transition:background .2s;
}
button:hover{background:#005f94;}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
footer{
    background:var(--bg-header);
    color:var(--text-muted);
    text-align:center;
    padding:1rem;
    border-top:1px solid #ccc;
    font-size:.9rem;
    position:relative;
}
footer .version{
    position:absolute;
    right:1rem;
    top:50%;
    transform:translateY(-50%);
    font-size:.85rem;
    color:var(--primary);
}

/* -------------------------------------------------
   Responsive tweaks
   ------------------------------------------------- */
@media(max-width:480px){
    header{padding:1.5rem .5rem;}
    .plan .price{font-size:1.5rem;}
}
/* -------------------------------------------------
   Navigation Bar
   ------------------------------------------------- */
.navbar {
    background: var(--bg-header);
    border-bottom: 1px solid #ccc;
}
.navbar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}
.navbar li {
    margin: 0 0.8rem;
}
.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: .4rem;
    transition: background .2s, color .2s;
}
.navbar a:hover,
.navbar a:focus {
    background: var(--primary);
    color: #fff;
}
/* -------------------------------------------------
   FAQ Accordion (details/summary)
   ------------------------------------------------- */
.faq details {
    border: 1px solid #ddd;
    border-radius: .5rem;
    margin-bottom: .75rem;
    background: var(--bg-card);
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    padding: .75rem 1rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    list-style: none;               /* hide default arrow */
}
.faq summary::after {
    content: "▸";                   /* right‑pointing triangle */
    position: absolute;
    right: 1rem;
    transition: transform .2s ease;
}
.faq details[open] summary::after {
    transform: rotate(90deg);       /* turn arrow down when open */
}
.faq summary:hover {
    background: #f0f8ff;
}
.faq details > p {
    padding: .75rem 1rem;
    margin: 0;
    line-height: 1.45;
    color: var(--text-dark);
}
/* -------------------------------------------------
   Gallery Page – Grid & Photo Styling
   ------------------------------------------------- */
.gallery .grid {
    display: grid;
    gap: 1rem;
    /* Auto‑fit columns, minimum 200 px, grow to fill space */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery .photo {
    background: var(--bg-card);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.gallery .photo img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery .photo figcaption {
    padding: .5rem 0.75rem;
    font-size: .9rem;
    color: var(--text-muted);
    text-align: center;
    background: #f9f9f9;
}
/* -------------------------------------------------
   Privacy Policy – Card & Content Styling
   ------------------------------------------------- */
.privacy-policy {
    /* inherits the .card background, radius & shadow automatically */
}

/* Headings inside the card – keep hierarchy clear */
.privacy-policy h2 {                     /* main title */
    margin-bottom: .75rem;
    color: var(--primary);
    font-size: 1.8rem;
}
.privacy-policy h3 {                     /* section titles */
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    color: var(--primary);
    font-size: 1.4rem;
}

/* Paragraph spacing */
.privacy-policy p {
    margin-bottom: .75rem;
    line-height: 1.55;
}

/* Unordered / ordered lists */
.privacy-policy ul,
.privacy-policy ol {
    margin-left: 1.5rem;
    margin-bottom: .75rem;
}
.privacy-policy li {
    margin-bottom: .35rem;
}

/* Table styling – simple, light‑grey borders */
.privacy-policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .95rem;
}
.privacy-policy th,
.privacy-policy td {
    border: 1px solid #ddd;
    padding: .5rem .75rem;
    text-align: left;
}
.privacy-policy th {
    background: var(--bg-header);
    color: var(--text-dark);
    font-weight: 600;
}

/* Emphasis & small print */
.privacy-policy em {
    color: var(--text-muted);
    font-style: normal;
}
.privacy-policy strong {
    color: var(--text-dark);
}

/* Links inside the card */
.privacy-policy a {
    color: var(--primary);
    text-decoration: underline;
}
.privacy-policy a:hover {
    opacity: .85;
}

/* Small note at the bottom */
.privacy-policy p:last-child {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
/* -------------------------------------------------
   Contact Card – WhatsApp & Messenger Buttons
   ------------------------------------------------- */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* Base button style – shared with other CTA buttons */
.contact .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .1s;
    cursor: pointer;
}

/* WhatsApp – green background */
.contact .whatsapp {
    background: #25D366;          /* WhatsApp brand green */
    color: #fff;
}
.contact .whatsapp:hover {
    background: #1ebd5a;
}

/* Messenger – Facebook blue background */
.contact .messenger {
    background: #0084FF;          /* Messenger brand blue */
    color: #fff;
}
.contact .messenger:hover {
    background: #006fd6;
}

/* Optional: slight lift on press */
.contact .btn:active {
    transform: translateY(1px);
}

/* Icon size – keep them consistent */
.contact .icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}
/* -------------------------------------------------
   Terms page – spacing for the policy buttons
   ------------------------------------------------- */
.policy-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}