/*
Theme Name: Nonprofit Theme
Author: Sahibjot Singh
Description: Custom theme for DGL233 Project 3
Version: 1.0
*/

/* =========================
   Base Styles
========================= */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.site-header {
    font-family: 'Montserrat', sans-serif;
}

.np-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.np-hero h2 {
    font-style: italic;
}
body {
    margin: 0;
    padding: 0;
    color: #111;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #111;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 0 20px;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.15;
    margin: 0 0 20px;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 15px;
}

p {
    margin: 0 0 16px;
    max-width: 65ch;
}

/* =========================
   Layout
========================= */

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
}



.site-header,
.site-footer,
.np-hero,
.np-about,
.np-membership,
.np-newsletter {
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   Header
========================= */


/* =========================
   Header
========================= */

/* Top Header */

.site-header-top {
    background: #efefef;
    padding: 8px 0;
}

.site-header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
}

.site-utility-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-utility-nav a {
    font-size: 0.85rem;
    text-decoration: none;
    color: #111;
}

/* Main Header */

.site-header-main {
    background: #d9d9d9;
    padding: 20px 0;
}

.site-header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */

.site-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 80px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

/* Main Nav */

.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.site-navigation a {
    font-weight: 600;
    text-decoration: none;
    color: #111;
}
/* =========================
   Program Header
========================= */

.site-header-program .site-header-main {
    background: #cfcfcf;
}

.site-header-program .site-logo-box {
    width: 240px;
    height: 90px;
    background: #ffffff;
    border: 1px solid #bbb;
}

.site-header-program .site-navigation a {
    font-weight: 700;
}
/* =========================
   Homepage Intro
========================= */

.np-home-intro {
    margin-bottom: 40px;
    padding: 15px;
    border: 1px solid #ddd;
}

.np-home-intro p {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 60ch;
}

/* =========================
   Hero Section
========================= */

.np-hero {
    background: #e5e5e5;
    padding: 90px 24px;
    
}

.np-hero-content {
    margin: 0 auto;
    
}

.np-hero-content > * {
    max-width: 620px;
}

.np-hero h2 {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 20px;
}

.np-hero p {
    font-size: 1rem;
    max-width: 55ch;
    margin-bottom: 24px;
}

/* =========================
   Homepage Sections
========================= */

.np-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}
.np-events-inner,
.np-programs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}
.np-news h2,
.np-events-inner h2,
.np-programs-inner h2 {
    grid-column: 1 / -1;
    font-size: 2.4rem;
    margin-bottom: 8px;
}

/* =========================
   Cards
========================= */

.np-news-card,
.np-event-card,
.np-program-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 0 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.np-news-card-image,
.np-event-card-image,
.np-program-card-image {
    margin-bottom: 16px;
}

.np-news-card-image img,
.np-event-card-image img,
.np-program-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.np-news-card-title,
.np-event-card h3,
.np-program-card h3,
.np-news-card-date,
.np-news-card-excerpt,
.np-news-card-link,
.np-event-card-meta,
.np-program-card-meta {
    padding-left: 16px;
    padding-right: 16px;
}

.np-news-card-title,
.np-event-card h3,
.np-program-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.np-news-card-date,
.np-event-card-meta p,
.np-program-card-meta p {
    font-size: 0.95rem;
}

.np-news-card-date {
    margin-bottom: 12px;
}

.np-news-card-excerpt,
.np-event-card-meta,
.np-program-card-meta {
    flex-grow: 1;
    margin-bottom: 15px;
}

.np-news-card-link a {
    font-weight: bold;
}

.np-event-card-meta p,
.np-program-card-meta p {
    margin-bottom: 8px;
}

/* =========================
   Buttons
========================= */

.np-button-wrap {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.np-button {
    display: inline-block;
    padding: 12px 20px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.np-button:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* =========================
   About Section
========================= */

.np-about-inner {
    background: #d9d9d9;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.np-about-content {
    max-width: 680px;
}

.np-about h2 {
    margin-bottom: 20px;
}

.np-about p {
    margin-bottom: 20px;
}

.np-about-links {
    min-width: 180px;
}

.np-about-links p {
    margin-bottom: 12px;
}

/* =========================
   Membership Section
========================= */

.np-membership {
    background: #ededed;
    padding: 70px 24px;
}

.np-membership-content {
    max-width: 680px;
}

.np-membership h2 {
    margin-bottom: 20px;
}

.np-membership p {
    margin-bottom: 20px;
}


/* =========================
   Single Pages
========================= */

.np-single-news,
.np-single-event,
.np-single-program {
    max-width: 900px;
    margin: 0 auto;
}

.np-breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.np-single-news-date {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.np-single-news-image,
.np-single-event-image,
.np-single-program-image {
    margin-bottom: 25px;
}

.np-single-news-content,
.np-single-event-content,
.np-single-program-content {
    margin-bottom: 30px;
}

.np-event-meta,
.np-program-meta {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

/* =========================
   Post Navigation
========================= */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* =========================
   404 Page
========================= */

.np-404 {
    text-align: center;
    padding: 60px 20px;
}

/* =========================
   Newsletter
========================= */

.np-newsletter {
    background: #d9d9d9;
    padding: 40px 24px;
    margin-bottom: 0;
}

.np-newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.np-newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.np-newsletter-form {
    display: flex;
    max-width: 520px;
    gap: 0;
}

.np-newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #bbb;
    font-size: 1rem;
    background: #fff;
}

.np-newsletter-form .np-button {
    padding: 12px 24px;
}

.np-newsletter-right p {
    margin-bottom: 12px;
}

/* =========================
   Footer
========================= */

.site-footer {
    background: #8a8a8a;
    color: #fff;
    margin-top: 0;
}

.site-footer a {
    color: #fff;
}

.np-footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.np-footer-about,
.np-footer-contact {
    min-width: 0;
}

.np-footer-about h3,
.np-footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.np-footer-about p,
.np-footer-contact p {
    max-width: 40ch;
    margin-bottom: 14px;
    color: #fff;
}

.np-footer-about a {
    display: inline-block;
    margin-top: 10px;
}

.np-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
}

.np-footer-bottom p {
    margin: 0;
    max-width: none;
}

.np-footer-links {
    display: flex;
    gap: 24px;
}
/* =========================
   Full Width Sections
========================= */

.np-hero,
.np-events,
.np-programs,
.np-about,
.np-membership {
    width: 100%;
    padding: 70px 0;
}

/* Inner containers */

.np-hero-inner,
.np-events-inner,
.np-programs-inner,
.np-about-inner,
.np-membership-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.np-hero {
    background: #e5e5e5;
}

.np-events {
    background: #f5f5f5;
}

.np-programs {
    background: #ffffff;
}

.np-about {
    background: #dddddd;
}

.np-membership {
    background: #eeeeee;
}
section {
    margin: 0;
}

.np-hero,
.np-events,
.np-programs,
.np-about,
.np-membership {
    padding: 70px 0;
}

.site-main {
    margin-top: 40px;
}

h2 {
    margin-bottom: 24px;
}
/* =========================
   Single Pages
========================= */

.np-single {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.np-breadcrumb {
    margin-bottom: 10px;
}

.np-date {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.np-feature-image {
    margin-bottom: 30px;
}

.np-content {
    margin-bottom: 40px;
}

.np-post-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
.np-member-tab {
    position: fixed;
    left: 0;
    top: 40%;
    transform: rotate(-90deg);
    transform-origin: left top;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 1000;
}
/* =========================
   News Archive Page
========================= */

.np-news-archive {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px 60px;
}

.np-archive-title {
    margin-bottom: 32px;
}

.np-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.np-news-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 0 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.np-news-card-image {
    margin-bottom: 16px;
}

.np-news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.np-news-card-title,
.np-news-card-date,
.np-news-card-link {
    padding-left: 16px;
    padding-right: 16px;
}

.np-news-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.np-news-card-date {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.np-news-card-link {
    margin-top: auto;
}

.np-news-card-link a {
    font-weight: 600;
}
/* =========================
   Events Archive Page
========================= */

.np-events-archive {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px 60px;
}

.np-archive-title {
    margin-bottom: 24px;
}

.np-sub-title {
    margin: 40px 0 20px;
}

/* Upcoming events grid */

.np-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
    align-items: start;
}

.np-event-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 0 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.np-event-card-image {
    margin-bottom: 16px;
}

.np-event-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.np-event-card h3,
.np-event-card-meta,
.np-event-card-link {
    padding-left: 16px;
    padding-right: 16px;
}

.np-event-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.np-event-card-meta {
    margin-bottom: 14px;
}

.np-event-card-meta p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.np-event-card-link {
    margin-top: auto;
}

.np-event-card-link a {
    font-weight: 600;
}

/* Past events list */

.np-past-events {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.np-event-list {
    padding-bottom: 18px;
    border-bottom: 1px solid #ddd;
}

.np-event-list h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.np-event-list p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.3s ease;
    will-change: transform;
}

.site-header-hidden {
    transform: translateY(-100%);
}

body {
    padding-top: 160px;
}
.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 24px;
    font-size: 14px;
}

.breadcrumbs a {
    text-decoration: none;
    color: #333;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
.site-header-program .site-header-main {
    background: #cfcfcf;
}

.site-header-program .site-logo-box {
    background: #ffffff;
    border: 2px solid #999;
}

.site-header-program .site-navigation a {
    font-weight: 700;
}