/* =========================================
ACCESSSA - MAIN STYLESHEET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: 'Poppins', sans-serif;
background: #f4f6f9;
color: #333;
line-height: 1.6;
}

.container {
width: 90%;
max-width: 1200px;
margin: auto;
}

/* =========================================
NAVIGATION
========================================= */

header {
background: #006633;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 18px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 20px;
}

nav a {
    color: white;
    margin-left: 0;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.logo {
font-size: 34px;
font-weight: 700;
color: white;
}

.logo span {
color: #FFD54F;
}

nav a {
color: white;
margin-left: 30px;
text-decoration: none;
font-weight: 600;
transition: 0.3s;
}

nav a:hover {
color: #FFD54F;
}

/* =========================================
HERO
========================================= */

.hero {
background: linear-gradient(135deg, #006633, #00a859);
padding: 100px 0;
text-align: center;
color: white;
}

.hero h1 {
font-size: 55px;
max-width: 900px;
margin: auto;
line-height: 1.2;
}

.hero p {
font-size: 21px;
margin-top: 25px;
margin-bottom: 40px;
}

/* =========================================
MAIN SEARCH BOX
========================================= */

.search-box {
display: flex;
max-width: 700px;
margin: 30px auto;
background: white;
border-radius: 50px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 18px;
    border: none;
    font-size: 18px;
    outline: none;
    border-radius: 50px;
}

.search-box input:focus {
    box-shadow: inset 0 0 0 3px rgba(0, 102, 51, 0.35);
}

.search-box button {
background: #FFD54F;
border: none;
padding: 0 35px;
font-size: 18px;
font-weight: bold;
cursor: pointer;
}

/* =========================================
POPULAR SEARCHES
========================================= */

.popular-searches {
margin-top: 25px;
}

.popular-searches a {
display: inline-block;
background: white;
color: #006633;
padding: 10px 18px;
border-radius: 25px;
margin: 8px;
text-decoration: none;
font-weight: 600;
}

/* =========================================
HERO BUTTONS
========================================= */

.hero-buttons {
margin-top: 45px;
}

.btn-primary,
.btn-secondary {
display: inline-block;
padding: 16px 35px;
border-radius: 35px;
text-decoration: none;
font-weight: bold;
margin: 10px;
}

.btn-primary {
background: #FFD54F;
color: #222;
}

.btn-secondary {
background: white;
color: #006633;
}

/* =========================================
PAGE HERO
========================================= */

.page-hero {
background: #006633;
color: white;
padding: 80px 0;
text-align: center;
}

.page-hero h1 {
font-size: 45px;
}

/* =========================================
SECTION HEADINGS
========================================= */

.services h2,
.calendar h2,
.faq h2 {
text-align: center;
font-size: 35px;
color: #006633;
margin-bottom: 40px;
}

/* =========================================
CARDS
========================================= */

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.card a {
    color: #006633;
    font-weight: bold;
    overflow-wrap: anywhere;
}
.card h3 {
color: #006633;
margin-bottom: 15px;
}

.card a {
color: #006633;
font-weight: bold;
}

/* =========================================
CALENDAR
========================================= */

.calendar table {
width: 100%;
border-collapse: collapse;
background: white;
}

.calendar th {
background: #006633;
color: white;
}

.calendar td,
.calendar th {
padding: 15px;
border: 1px solid #ddd;
}

/* =========================================
FAQ
========================================= */

.faq {
padding: 60px 0;
}

.faq h3 {
color: #006633;
margin-top: 25px;
}

/* =========================================
EDUCATION SEARCH
========================================= */

.education-search {
background: #f8fafc;
padding: 60px 0;
text-align: center;
}

.education-search input {
width: 60%;
padding: 18px;
border-radius: 30px;
border: 1px solid #ddd;
font-size: 17px;
}

.education-search button {
padding: 18px 35px;
background: #006633;
color: white;
border: none;
border-radius: 30px;
font-weight: bold;
margin-left: 10px;
cursor: pointer;
}

/* =========================================
FINANCE SEARCH
========================================= */

.finance-search {
background: #f8fafc;
padding: 60px 0;
text-align: center;
}

.finance-search input {
width: 60%;
padding: 18px;
border-radius: 30px;
border: 1px solid #ddd;
font-size: 17px;
}

.finance-search button {
padding: 18px 35px;
background: #006633;
color: white;
border: none;
border-radius: 30px;
font-weight: bold;
margin-left: 10px;
cursor: pointer;
}

/* =========================================
COMMUNITY SEARCH
========================================= */

.community-search {
background: #f8fafc;
padding: 60px 0;
text-align: center;
}

.community-search input {
width: 60%;
padding: 18px;
border-radius: 30px;
border: 1px solid #ddd;
font-size: 17px;
}

.community-search button {
padding: 18px 35px;
background: #006633;
color: white;
border: none;
border-radius: 30px;
font-weight: bold;
margin-left: 10px;
cursor: pointer;
}

/* =========================================
JOB SEARCH SECTION
========================================= */

.job-search-section {
text-align: center;
padding: 40px 20px;
}

.job-search-section h2 {
margin-bottom: 25px;
font-size: 30px;
font-weight: 700;
color: #006633;
}

.job-search-box {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
flex-wrap: wrap;
max-width: 1100px;
margin: 0 auto;
}

/* Search input */

.job-search-input {
width: 430px;
height: 55px;
padding: 0 22px;
border: 2px solid #ddd;
border-radius: 30px;
background: #fff;
color: #333;
font-family: 'Poppins', Arial, sans-serif;
font-size: 16px;
outline: none;
transition: 0.3s;
}

.job-search-input:focus {
border-color: #006633;
box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.12);
}

.job-search-input::placeholder {
color: #888;
}

/* Category dropdown */

.job-category-select {
width: 280px;
height: 55px;
padding: 0 20px;
border: 2px solid #ddd;
border-radius: 30px;
background: white;
color: #333;
font-family: 'Poppins', Arial, sans-serif;
font-size: 16px;
outline: none;
cursor: pointer;
}

.job-category-select:focus {
border-color: #006633;
}

/* Job buttons */

.job-search-btn,
.job-all-btn {
height: 55px;
padding: 0 25px;
border: none;
border-radius: 30px;
font-family: 'Poppins', Arial, sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}

/* Search Jobs */

.job-search-btn {
background: #006633;
color: white;
}

.job-search-btn:hover {
background: #004d26;
transform: translateY(-2px);
}

/* Show All Jobs */

.job-all-btn {
background: #FFD54F;
color: #222;
}

.job-all-btn:hover {
background: #e6bd35;
transform: translateY(-2px);
}

/* Latest Jobs */

#jobsList {
margin-top: 25px;
width: 100%;
min-width: 0
}
#jobsList .card {
    min-width: 0;
}
/* =========================================
FOOTER
========================================= */

.footer {
background: #003d1f;
color: white;
padding: 40px 0;
text-align: center;
margin-top: 50px;
}

.footer a {
color: white;
text-decoration: none;
margin: 10px;
display: inline-block;
}

.footer a:hover {
color: #FFD54F;
}

/* =========================================
MOBILE
========================================= */

@media (max-width: 768px) {

.container {
    width: 92%;
}

/* Navigation */

.navbar {
    flex-direction: column;
    gap: 15px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav a {
    margin-left: 0;
}

.logo {
    font-size: 30px;
}


/* Hero */

.hero {
    padding: 70px 0;
}

.hero h1 {
    font-size: 38px;
}

.hero p {
    font-size: 18px;
}

.search-box {
    flex-direction: column;
    border-radius: 20px;
}

.search-box input {
    width: 100%;
    padding: 18px;
}

.search-box button {
    width: 100%;
    padding: 16px;
}


/* Page hero */

.page-hero {
    padding: 60px 0;
}

.page-hero h1 {
    font-size: 35px;
}


/* Education */

.education-search input {
    width: 100%;
    margin-bottom: 15px;
}

.education-search button {
    width: 100%;
    margin-left: 0;
}


/* Finance */

.finance-search input {
    width: 100%;
    margin-bottom: 15px;
}

.finance-search button {
    width: 100%;
    margin-left: 0;
}


/* Community */

.community-search input {
    width: 100%;
    margin-bottom: 15px;
}

.community-search button {
    width: 100%;
    margin-left: 0;
}


/* Job search */

.job-search-section {
    padding: 30px 15px;
}

.job-search-section h2 {
    font-size: 25px;
}

.job-search-box {
    flex-direction: column;
    width: 100%;
}

.job-search-input,
.job-category-select,
.job-search-btn,
.job-all-btn {
    width: 100%;
    max-width: 500px;
}


/* Cards */

.cards {
    grid-template-columns: 1fr;
}


/* Calendar */

.calendar {
    overflow-x: auto;
}

.calendar table {
    min-width: 600px;
}

}

/* =========================================
   SUBSCRIBE SECTION
========================================= */

.subscribe {
    background: #006633;
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.subscribe h2 {
    margin-bottom: 15px;
    font-size: 30px;
}

.subscribe p {
    margin-bottom: 25px;
}

.subscribe input {
    width: min(100%, 450px);
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    outline: none;
}

.subscribe button {
    height: 50px;
    padding: 0 25px;
    margin-left: 8px;
    border: none;
    border-radius: 25px;
    background: #FFD54F;
    color: #222;
    font-weight: 700;
    cursor: pointer;
}

.subscribe button:hover {
    background: #e6bd35;
}
/* =========================================
   SERVICES
========================================= */

.services {
    padding: 70px 0;
}

.services h2 {
    text-align: center;
    font-size: 35px;
    color: #006633;
    margin-bottom: 40px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #FFD54F;
    outline-offset: 3px;
}
/* =====================================================
   ACCESSSA BURSARIES PAGE
   ===================================================== */

.bursary-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bursary-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* Bursary category cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.cards-grid .card {
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cards-grid .card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cards-grid .card p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Search */

.search-box {
    display: flex;
    max-width: 700px;
    margin: 25px auto 0;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.search-box button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Information list */

.content-section ul {
    line-height: 1.8;
    padding-left: 25px;
}

/* Mobile */

@media (max-width: 768px) {

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

}