/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: -16px;
    z-index: 1000;
    height: 96px;
    transition: height 0.8s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Styles */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
        height: auto;
    max-height: 73px;
    width: auto;
    max-width: 350px;
}

/* Menu Styles */
.menu {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 25px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.menu a:hover {
    color: #e74c3c;
}

.menu a.active {
    color: #e74c3c;
    font-weight: 600;
}

.menu a.active:after,
.menu a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
}

/* Compact header on scroll */
header.compact {
    height: 80px;
}

header.compact .logo img {
    height: 60px;
    max-width: 250px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: url('../images/background1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: white;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-button:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* Main Content Sections */
main {
    padding: 60px 0;
}

section {
    margin-bottom: 60px;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* Mission Section */
.mission-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.mission-section p {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #333;
}

/* Trustees Section */
.trustees-section {
    padding: 3rem 0;
    text-align: center;
}

.trustees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 20px;
}

.trustee-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trustee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.trustee-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #f1f1f1;
}

.trustee-card h3 {
    color: #e74c3c;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.story-date {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-style: italic;
}

.trustee-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.trustee-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    padding: 8px 18px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #c0392b;
}

.no-stories, .error-message {
    grid-column: 1 / -1;
    padding: 20px;
    background: #fff3f3;
    border-left: 4px solid #e74c3c;
    text-align: center;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Help Section */
.help-section {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.help-content {
    flex: 1;
    padding: 0 2rem;
}

.help-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.help-button:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: #ddd;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-section p {
    color: #ddd;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .logo img {
        height: 80px;
        max-width: 300px;
    }
    
    header.compact .logo img {
        height: 50px;
        max-width: 200px;
    }
    
    .menu li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }
    
    header {
        height: auto;
        padding: 10px 0;
    }
    
    nav {
        flex-direction: column;
        padding: 0;
    }
    
    .logo {
        float: none;
        width: 300px;
        height: 70px;
        margin: 0 auto 15px;
        text-align: center;
    }
    
    .menu {
        float: none;
        margin-top: 15px;
    }
    
    .hero {
        height: 400px;
        text-align: center;
    }
    
    .help-section {
        flex-direction: column;
        text-align: center;
    }
    
    .help-content {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .trustees-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1px));
    }
    
    .trustee-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
        max-width: 250px;
    }
    
    .trustees-grid {
        grid-template-columns: 1px;
    }
    
    .trustee-card img {
        width: 100px;
        height: 100px;
    }
}
/*----------test----------*/



header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: padding 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;     /* set exact logo height */
    width: auto;       /* maintain aspect ratio */
    max-width: 100%;   /* prevent overflow */
    display: block;
}

/* MENU */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;         /* spacing between items */
}

.menu li {
    margin: 0;         /* gap handles spacing */
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
    color: #e74c3c;
}

.menu a.active::after,
.menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #e74c3c;
}

/* COMPACT HEADER ON SCROLL */
header.compact {
    padding: 5px 0;
}

header.compact .logo img {
    height: 60px; /* smaller logo when compact */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        display: block;
        width: 100%;
    }

    .logo {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 80px;  /* slightly smaller logo on very small screens */
    }
}
nav {
    display: flex;
    align-items: center;      /* aligns items vertically */
    gap: 20px;                /* space between logo and menu */
    flex-wrap: wrap;
}

.logo img {
    height: 100px;            /* or your preferred size */
    width: auto;
    display: block;
}

.menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 20px;                /* spacing between menu items */
    padding: 0;
    margin: 0;
}
