:root{
	--primary-color: #1E6FD8; /* new blue primary */
	--accent-color: #F59E0B; /* warm gold accent */
	--muted: #6b7280;
	--bg: #fff;
	--max-width: 1100px;
} 
/* Base */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Poppins',Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;color:#0f172a;background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.55}
h1,h2,h3{line-height:1.2}
h2{font-size:1.8rem} 
h3{font-size:1.25rem}
/* General card content styling */
.card p { margin: .5rem 0 0; font-size: .95rem; line-height: 1.5; }
.card ul { font-size: .95rem; line-height: 1.5; padding-left: 1.25rem; }

.container{max-width:var(--max-width);margin:0 auto;padding:0 1rem}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 1rem}

/* Header / Nav */
.site-header{background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));box-shadow:0 6px 18px rgba(20,20,20,0.06);backdrop-filter:blur(6px)}
.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
.brand-text{font-weight:700;letter-spacing:0.2px;color:var(--primary-color)}

/* Default Desktop Navigation */
.nav-toggle{ display:none; } /* Hidden on desktop */
.site-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.site-nav ul{ display:flex; align-items:center; gap:.5rem; margin:0; padding:0; list-style:none; }
.site-nav a{display:block;padding:.5rem .6rem; border-radius:8px; color:var(--muted); text-decoration:none;}
.site-nav a:hover, .site-nav a:focus { background: rgba(30,111,216,0.06); color:var(--primary-color); outline:none; }
.site-nav a:focus-visible { outline:3px solid rgba(30,111,216,0.14); outline-offset:3px; }

/* Staggered load-in animation for desktop nav links */
.site-nav ul li {
	opacity: 0;
	animation: navLinkFade 0.4s ease forwards;
}
.site-nav ul li:nth-child(1) { animation-delay: 0.1s; }
.site-nav ul li:nth-child(2) { animation-delay: 0.2s; }
.site-nav ul li:nth-child(3) { animation-delay: 0.3s; }
.site-nav ul li:nth-child(4) { animation-delay: 0.4s; }
.site-nav ul li:nth-child(5) { animation-delay: 0.5s; }
.site-nav ul li:nth-child(6) { animation-delay: 0.6s; }
.site-nav ul li:nth-child(7) { animation-delay: 0.7s; }
.site-nav ul li:nth-child(8) { animation-delay: 0.8s; }

/* Donate button in nav - make it prominent */
.site-nav .btn-donate {
	background: var(--accent-color);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
	padding: .4rem .8rem; /* Make button smaller */
	opacity: 0;
	animation: navLinkFade 0.4s ease 0.9s forwards; /* Also animate donate button */
}
@media (max-width: 1024px) {
	.site-nav > .btn-donate { display: none; } /* Hide in mobile pop-out nav */
	.site-header .btn-donate { display: block; } /* Show next to hamburger */
}

/* Hero stats section */
.hero-stats{display:flex;gap:1rem;margin-top:1.25rem;flex-wrap:wrap}
.stat-card{background:linear-gradient(180deg,#fff,#fbfbff);padding:.6rem .9rem;border-radius:12px;box-shadow:0 8px 20px rgba(12,16,24,0.04);min-width:110px;text-align:center}
.stat-card .count{font-weight:700;font-size:1.05rem;color:var(--primary-color)}
.stat-card .label{font-size:.8rem;color:var(--muted)}

/* Hero */
.hero{padding:3.5rem 0;background:linear-gradient(135deg, rgba(30,111,216,0.06), rgba(245,250,255,0.03))}
.hero-inner{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center} 
/* Use clamp() for fluid typography on the main heading */
.hero h1{font-size:clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);margin:0 0 .5rem;line-height:1.1}
.lead{color:var(--muted);font-size:clamp(1rem, 0.95rem + 0.25vw, 1.1rem);margin:0.75rem 0}
.hero-media .placeholder-img{height:320px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff,#f6fbfa);border:1px solid rgba(20,20,20,0.03)}
/* Style for the new hero image */
.hero-img { width: 100%; height: auto; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,0.07); }


/* Buttons */
.btn{display:inline-block;padding:.5rem .85rem;border-radius:9px;background:#f3f3f3;color:inherit;text-decoration:none}
.btn-primary{background:linear-gradient(90deg,var(--primary-color),#145fae);color:#fff;box-shadow:0 8px 20px rgba(30,111,216,0.08)}
.btn-secondary { margin-left: .6rem; }

/* Responsive grids (programs, get-involved etc) */
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card{display:flex; flex-direction:column; border-radius:12px;padding:1.1rem;background:linear-gradient(180deg,#fff,#fbfdfe);box-shadow:0 8px 26px rgba(15,23,42,0.04);transition:transform .18s ease, box-shadow .18s ease; border: 1px solid rgba(15,23,42,0.05); height: 100%;}
.card-icon {
	width: 48px;
	height: 48px;
	display: inline-grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(30,111,216,0.08), rgba(30,111,216,0.12));
	color: var(--primary-color);
	border-radius: 10px;
	margin-bottom: .75rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3{margin-top:0; font-size: 1.15rem;}
.card:hover{transform:translateY(-6px); box-shadow:0 14px 34px rgba(15,23,42,0.08); border-color: rgba(30,111,216,0.2);}

/* Style for cards that are links */
.card-link {
	text-decoration: none;
	color: inherit;
	display: flex; /* Ensure the link fills the grid cell */
}

/* Action area at the bottom of a card */
.card-action {
	margin-top: auto; /* Pushes to the bottom of the card */
	padding-top: .75rem;
	border-top: 1px solid rgba(15,23,42,0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-weight: 600;
	color: var(--primary-color);
}
.whatsapp-icon { width: 16px; height: 16px; fill: #25D366; }

/* Hero Event Card */
.hero-event-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.07);
	padding: 1rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.hero-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15,23,42,0.1);
}

.hero-event-card .event-header h4 { margin: 0 0 .75rem; color: black; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.hero-event-card .event-details h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.hero-event-card .event-details p { margin: .2rem 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.hero-event-card .event-details .btn { margin-top: .75rem; }
.event-location {
    font-size: .85rem;
    line-height: 1.3;
}


/* Upcoming Events Section */
.events { background: #f8fafc; padding: 2rem 0; }
.event-card { background: #fff; display: flex; gap: 1.5rem; align-items: center; }
.event-details h3 { margin-top: 0; color: var(--primary-color); }
.event-details p { margin: .4rem 0; }
.event-details .btn { margin-top: .75rem; }

/* Vision card blockquote styling */
.vision-quote {
	margin: .5rem 0 0;
	padding: 0;
	font-style: italic;
	color: var(--muted);
}
.vision-quote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .9rem; text-align: right; }
.vision-quote .shloka {
	margin-top: .75rem;
	padding-top: .75rem;
	border-top: 1px dashed rgba(15,23,42,0.1);
	font-weight: 600;
}

/* Impact Section Styling */
.impact { background: #f8fafc; }
.impact-content { max-width: 720px; margin: 0 auto; text-align: center; }
.impact-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
	text-align: left;
}
.impact-list li {
	position: relative;
	padding-left: 1.75rem;
	font-weight: 600;
}
.impact-list li::before {
	content: '✔';
	position: absolute; left: 0; top: 0; color: var(--accent-color); font-weight: 900;
}

/* Photo Gallery Section */
.gallery .lead { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}
.gallery-item {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(15,23,42,0.04);
	transition: transform .2s ease, box-shadow .2s ease;
	aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
}
.gallery-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}
.gallery-image { width: 100%; height: 100%; object-fit: cover; }

/* Champions Section */
.champions { background: #f8fafc; padding: 2rem 0; }
.champions .lead { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.champions .section-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.15));
	color: var(--accent-color);
	border-radius: 50%;
}
.champions .section-icon svg { width: 36px; height: 36px; }
.puraskara-content {
	max-width: 720px;
	margin: 1.5rem auto 0;
	text-align: left;
	line-height: 1.6;
	background: #fff;
	padding: 2rem;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.05);
}

/* Centered call-to-action button for a section */
.section-cta {
	text-align: center;
	margin-top: 2rem;
}

/* Donation info block */
.donation-info {
	margin-bottom: 2rem;
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.donation-info h3 { color: var(--primary-color); }
.donation-info p {
	line-height: 1.6;
	color: var(--muted);
}
/* Donate Section */
.donate-section { background: #f8fafc; }
.donate-section .lead { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.donate-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	margin-top: 2rem;
	background: #fff;
	padding: 2rem;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.05);
}
.donate-details h3, .donate-qr h3 { margin-top: 0; color: var(--primary-color); }
.bank-details {
	list-style: none;
	padding: 0;
	margin: .5rem 0 0;
	line-height: 1.8;
}
.bank-details li { font-size: 1rem; }
.bank-details strong { color: #0f172a; }
.donate-qr { text-align: center; }
.qr-code-container {
	max-width: 220px;
	margin: 1rem auto;
	padding: .5rem;
	background: #fff;
	border: 1px solid rgba(15,23,42,0.1);
	border-radius: 8px;
}
.qr-code-container img { max-width: 100%; height: auto; display: block; }

/* Modal Styles */
.modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(15,23,42,0.6);
	backdrop-filter: blur(4px);
	cursor: pointer;
}
.modal-container {
	position: relative;
	background: #fff;
	border-radius: 0; /* No rounded corners for full screen */
	padding: 2rem; /* Adjust padding for full screen */
	width: 100%;
	height: 100%;
	overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h2 { margin: 0; font-size: 1.5rem; }
.modal-close { background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--muted); padding: 0 .5rem; line-height: 1; }

/* Corporate Partners Section */
.partners { background: #f8fafc; padding: 2rem 0; }
.partners .lead { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.logo-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 2rem;
}
.logo-item {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(15,23,42,0.04);
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100px; /* Give items a fixed height */
}
.logo-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(15,23,42,0.07);
}
.logo-item img {
	max-width: 100%;
	max-height: 60px; /* Set a max-height for logos */
	object-fit: contain; /* Ensure aspect ratio is maintained */
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter .3s ease, opacity .3s ease;
}
.logo-item:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Redesigned light, compact footer */
.site-footer{
	background:var(--primary-color); /* Use logo color for background */
	color: rgba(255,255,255,0.8); /* Softer white for body text */
	padding: 2rem 0 1rem; /* Increased padding for better spacing */
	border-top: none; /* Remove top border as background is now the brand color */
}
.footer-inner{
	max-width:var(--max-width);
	margin:0 auto;
	padding:0 1rem;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr; /* Give more space to the brand column */
	gap: 2rem; /* Increase gap for better separation */
	align-items:start;
}
.footer-brand{display:flex;flex-direction:column;gap:.75rem;align-items:flex-start}
.footer-brand strong{font-size:1.02rem;color:#fff;display:block; font-weight: 600;}
.footer-desc{margin-top:.45rem;color:inherit;line-height:1.45}

.footer-section strong{display:block;margin-bottom:.45rem;color:#fff; font-weight: 600;}
.footer-links, .footer-contact{list-style:none;padding:0;margin:0}
.footer-links li, .footer-contact li{
	margin:.35rem 0;
	/* Add word break for long text like addresses */
	word-break: break-word;
}
.footer-contact .address { margin-top: .35rem; }
.footer-links a, .footer-contact a{color:inherit;text-decoration:none}
.footer-links a:hover{text-decoration:underline;color:#fff; opacity: 1;}

.newsletter{display:flex;gap:.5rem;margin-top:.6rem}
.newsletter input{flex:1;padding:.5rem;border:1px solid rgba(255,255,255,0.3);border-radius:8px;background:rgba(0,0,0,0.1);color:#fff}
.newsletter button{padding:.48rem .8rem;border:0;border-radius:8px;background:var(--accent-color);color:#fff;cursor:pointer}

.footer-bottom{max-width:var(--max-width);margin:0 auto;padding:1rem 1rem 0;display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;font-size:.88rem;color:inherit; border-top: 1px solid rgba(255,255,255,0.2);}
.footer-bottom .note{flex:1}
/* Removed nowrap to allow wrapping on small screens */
.footer-bottom .copyright{white-space:normal}

/* Add overflow-x hidden to sections to prevent horizontal scroll */
body, .section { overflow-x: hidden; }

@media (max-width:640px){
	.newsletter{flex-direction:column}
	.newsletter button{width:100%}.footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.footer-bottom{flex-direction:column;align-items:flex-start;gap:.5rem}
}

/* Scroll-top (keeps previous rules) */
.scroll-top{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border-radius:10px;background:linear-gradient(180deg,var(--primary-color),#145fae);color:#fff;border:0;display:inline-grid;place-items:center;box-shadow:0 10px 24px rgba(16,24,40,0.12);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease,visibility .25s;z-index:120}
.scroll-top.show{opacity:1;visibility:visible;transform:none}
.scroll-top:focus{outline:2px solid rgba(255,255,255,0.18);outline-offset:3px}

/* Small reveal */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}
/* Staggered animation delays */
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .12s; }
.reveal.delay-3 { transition-delay: .16s; }
.reveal.delay-4 { transition-delay: .2s; }


/* Flashing animation for event card */
@keyframes flash {
	0%, 100% {
		box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
	}
	50% {
		box-shadow: 0 12px 40px rgba(30, 111, 216, 0.2);
	}
}

/* Keyframes for nav link animation */
@keyframes navLinkFade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* Mobile first tweaks */
@media (max-width: 1024px) {
	/* Hamburger menu visible on tablet/mobile */
	.nav-toggle{
		display:block;
		background:transparent;
		border:1px solid rgba(30,111,216,0.06);
		border-radius:10px;
		padding:.4rem;
		cursor:pointer;
		z-index:220; /* added so button stays above the nav overlay */
	}
	.nav-toggle.active{ background:rgba(30,111,216,0.06); }
	.nav-toggle span{display:block;width:22px;height:2px;background:var(--muted);margin:4px 0;border-radius:2px}

	/* Pop-over navigation menu for tablet/mobile */
	.site-nav{
		position:absolute;
		top: 70px;
		/* Reset animation for mobile view */
		& ul li, & .btn-donate {
			opacity: 1;
			animation: none;
		}
		right:1rem;
		top:64px;
		background:#fff;
		padding:.8rem;
		border-radius:12px;
		box-shadow:0 12px 32px rgba(12,16,24,0.08);
		display:none; /* hidden until toggled */
		width:calc(100% - 2rem);
		max-width:320px; /* Adjusted for better fit */
		z-index:210;
	}
	.site-nav.open{display:block}
	.site-nav ul{flex-direction:column;gap:.5rem;}
	.site-nav ul .btn-donate { display: block; text-align: center; } /* Show donate button inside mobile nav */
}

@media (min-width:820px){
	.hero-inner{grid-template-columns:1fr minmax(320px,420px);}
}

@media (max-width:820px){
	.hero { padding: 2rem 0; }
	.hero-media .placeholder-img{height:200px}
	.hero-img { height: auto; }
}

@media (max-width:560px){
	.hero { padding: 1.5rem 0; }
	.donate-grid { grid-template-columns: 1fr; padding: 1.5rem; }
	.hero-inner { gap: 1.5rem; }
	.brand-text{display:none}
	.container{padding:0 .75rem}
	.hero-media .placeholder-img{height:160px}
	.hero-img { height: auto; }
	.scroll-top{right:12px;bottom:12px;width:40px;height:40px}
}

/* brand logo image sizing (added) */
.brand-logo{width:100px;height:auto;display:block;border-radius:6px;object-fit:contain}

/* Trustees: centered vertical card layout */
.trustees { padding:2rem 0; }
.trustees .grid { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trustee-card{
	border: 1px solid transparent;
	display:flex;
	flex-direction:column;
	align-items:center;
	text-align:center;
	padding:1.1rem;
	border-radius:12px;
	background:#fff;
	box-shadow:0 6px 18px rgba(15,23,42,0.04);
	transition:transform .18s ease,box-shadow .18s ease;
	min-height:170px;
}
.trustee-card:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(15,23,42,0.08);border-color:rgba(30,111,216,0.2)}
.trustee-photo{width:96px;height:96px;border-radius:50%;object-fit:cover;background:#f3f3f3;border:1px solid rgba(15,23,42,0.04);margin-bottom:.6rem}
.trustee-name{font-weight:700;margin:0;margin-bottom:.25rem;font-size:1rem;color:#0f172a}
.trustee-meta{width:100%;display:flex;flex-direction:column;align-items:center;gap:.25rem;flex:1}
/* footer area sticks to bottom of card */
.trustee-footer{display:flex;align-items:center;gap:.5rem;margin-top:auto;padding-top:.5rem;width:100%;justify-content:center;border-top:1px dashed rgba(15,23,42,0.02)}
.trustee-role{font-size:.92rem;color:var(--muted);margin:0;padding:0}
.trustee-actions{display:inline-flex;align-items:center;gap:.45rem}
.linkedin-btn{width:36px;height:36px;border-radius:8px;border:1px solid rgba(15,23,42,0.06);display:inline-grid;place-items:center;background:transparent;color:var(--primary-color);text-decoration:none}
.linkedin-btn:hover{background:rgba(30,111,216,0.06)}
.linkedin-icon{width:18px;height:18px;fill:currentColor}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:520px){
	.trustees .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.trustee-footer { flex-direction: column; gap: .75rem; }
	.linkedin-btn{width:34px;height:34px}
}

.event-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.event-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Quote card in donation section */
.quote-card {
	margin-top: 2rem;
	background: #fff;
	padding: 2rem;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15,23,42,0.05);
	border-left: 4px solid var(--accent-color);
}
.quote-card blockquote {
	margin: 0;
	font-size: 1.1rem;
	font-style: italic;
	color: var(--muted);
}
.quote-card cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-weight: 600;
	text-align: right;
	color: #0f172a;
}
