/* ================= ROOT VARIABLES ================= */
:root {
    --primary-green: #1f8f6a;   /* Healthcare green */
    --secondary-green: #e6f4ef;
    --dark-text: #1f2933;
    --light-text: #ffffff;
    --gray-text: #4b5563;
}
section {
    padding-left: 0;
    padding-right: 0;
}

/* ================= RESET ================= */
* 
h1, h2, h3 {
    line-height: 1.3;
}

h1 {
    font-size: 2.3rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    max-width: 70ch;
}

{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: var(--dark-text);
    line-height: 1.7;
}

/* ================= UTILITIES ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

/* ================= HEADER ================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area img {
    width: 45px;
    height: auto;
}

.college-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--dark-text);
    font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
}

/* ================= HERO ================= */
.hero {
    background: var(--secondary-green);
    padding: 4rem 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.primary-btn:hover {
    background: #166f53;
}

.secondary-btn:hover {
    background: var(--primary-green);
    color: var(--light-text);
}


.primary-btn {
    background: var(--primary-green);
    color: var(--light-text);
}

.secondary-btn {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

/* ================= STRENGTHS ================= */
.strengths {
    padding: 4rem 0;
}

.strengths h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.strength-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.strength-card,
.programme-card,
.accreditation-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.strength-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* ================= FOOTER ================= */
.site-footer {
    background: var(--primary-green);
    color: var(--light-text);
    text-align: center;
    padding: 1.5rem 0;
}

/* ================= RESPONSIVE NAVIGATION ================= */
@media (max-width: 768px) {

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        width: 100%;
        display: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-top: 1px solid #e5e7eb;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .main-nav.active {
        display: block;
    }

    .header-content {
        position: relative;
    }
}

/* ================= INNER PAGES ================= */
.page-hero {
    background: var(--secondary-green);
    padding: 3rem 0;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-content {
    padding: 3rem 0;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* ================= HERO LAYOUT ================= */
.hero-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2rem;
}

.hero-image img {
    width: 100%;
    border-radius: 6px;
}

/* ================= PROGRAMMES PREVIEW ================= */
.programmes-preview {
    background: #f9fafb;
    padding: 4rem 0;
}

.programmes-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.programme-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* ================= ANIMATIONS ================= */
.strength-card,
.programme-card {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a:focus,
button:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
}

/* ================= PROVOST MESSAGE ================= */
.provost-message {
    background: #ffffff;
    padding: 4rem 0;
}

.provost-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.provost-image img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.provost-text h2 {
    margin-bottom: 1rem;
}

.provost-text p {
    margin-bottom: 1rem;
}

.provost-name {
    margin-top: 1.5rem;
}

/* ================= ACCREDITATION ================= */
.accreditation {
    background: #f9fafb;
    padding: 4rem 0;
}

.accreditation h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.accreditation-intro {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 700px;
}

.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
}

.accreditation-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: center;
    border-radius: 6px;
}

.accreditation-card img {
    max-width: 100px;
    margin-bottom: 1rem;
}

/* ================= FACILITIES ================= */
.facilities {
    background: #ffffff;
    padding: 4rem 0;
}

.facilities h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.facilities-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.facility-card {
    background: #f9fafb;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.facility-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-card h3 {
    margin: 1rem;
}

.facility-card p {
    margin: 0 1rem 1.5rem;
}

/* ================= NEWS & ANNOUNCEMENTS ================= */
.news {
    background: #f3f7f5;
    padding: 4rem 0;
}

.news h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-tag {
    display: inline-block;
    background: var(--primary-green);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    margin-bottom: 0.75rem;
}

.news-card p {
    font-size: 0.95rem;
}

.news-card.featured img {
    max-height: 520px;
}


@media (max-width: 768px) {
    .news-card.featured {
        grid-column: span 1;
    }
}

/* Flyer-specific image handling */
.flyer-image {
    height: auto;
    object-fit: contain;
    background: #ffffff;
}


/* ================= FOOTER EXPANDED ================= */
.site-footer {
    background: var(--primary-green);
    color: var(--light-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p,
.footer-column li {
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--light-text);
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
}
