/* Delhi Study Group – Home page styles */
:root {
	--dsg-orange: #ef6c00;
	--dsg-navy: #0f1d38;
	--dsg-text: #333;
	--dsg-muted: #666;
	--dsg-tint: #fbf7f2;
	--dsg-border: #e8e2da;
}

.dsg-home { font-family: 'Poppins', sans-serif; color: var(--dsg-text); line-height: 1.6; }
.dsg-home h1, .dsg-home h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--dsg-navy); line-height: 1.15; margin: 0 0 14px; }
.dsg-home h3 { margin: 0 0 4px; font-size: 15px; }
.dsg-home img { max-width: 100%; display: block; }
.dsg-container { width: min(1180px, 92%); margin: 0 auto; }
.dsg-section { padding: 64px 0; }
.dsg-tint { background: var(--dsg-tint); }
.dsg-center { text-align: center; }
.dsg-center .dsg-lead { margin-inline: auto; }
.dsg-eyebrow { display: inline-block; color: var(--dsg-orange); font-size: 13px; margin-bottom: 6px; }
.dsg-eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--dsg-orange); vertical-align: middle; margin-right: 8px; }
.dsg-center .dsg-eyebrow::before { display: none; }
.dsg-home h2 { font-size: clamp(28px, 4vw, 40px); }
.dsg-lead { max-width: 640px; color: var(--dsg-muted); font-size: 14px; }

/* Buttons */
.dsg-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--dsg-orange); color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s; }
.dsg-btn:hover, .dsg-btn:focus-visible { background: #c95a00; color: #fff; }
.dsg-btn--sm { padding: 6px 16px; font-size: 12px; }

/* Grids */
.dsg-grid { display: grid; gap: 20px; }
.dsg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dsg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dsg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; }

/* Hero slider */
.dsg-hero { position: relative; padding-bottom: 40px; }
.dsg-slides { position: relative; aspect-ratio: 8 / 3; min-height: 400px; max-height: 640px; }
.dsg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.dsg-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.dsg-slide .dsg-container { position: relative; }
.dsg-hero__content { max-width: min(460px, 40vw); }
.dsg-hero h1 { font-size: clamp(28px, 3.4vw, 46px); }
.dsg-hero h1 span { display: block; color: var(--dsg-orange); }
.dsg-hero p { font-size: 14px; margin-bottom: 20px; }
.dsg-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--dsg-navy); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.dsg-hero__nav--prev { left: 16px; }
.dsg-hero__nav--next { right: 16px; }
.dsg-dots { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.dsg-dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: rgba(15,29,56,.3); cursor: pointer; transition: width .25s, background .25s; }
.dsg-dots button.is-active { width: 28px; background: var(--dsg-orange); }
.dsg-hero__nav:focus-visible, .dsg-dots button:focus-visible { outline: 2px solid var(--dsg-orange); outline-offset: 2px; }
.dsg-features { margin-top: -50px; position: relative; z-index: 4; }
.dsg-features { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.dsg-features__item { display: flex; gap: 16px; padding: 22px; border-right: 1px solid var(--dsg-border); }
.dsg-features__item:last-child { border-right: 0; }
.dsg-features__item > i { font-size: 36px; color: var(--dsg-orange); }
.dsg-features__item p { font-size: 12px; color: var(--dsg-muted); margin: 0; }

/* About */
.dsg-about__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.dsg-about p { font-size: 14px; }
.dsg-about .dsg-btn { margin-top: 10px; }

/* Team */
.dsg-team .dsg-grid { margin-top: 30px; }
.dsg-member { display: block; text-decoration: none; color: inherit; background: #efeae4; border: 1px solid var(--dsg-border); border-radius: 8px; overflow: hidden; }
.dsg-member img { width: 100%; aspect-ratio: 1 / .85; object-fit: cover; object-position: top; }
.dsg-member__info { background: #fff; padding: 10px; display: flex; flex-direction: column; font-size: 13px; }
.dsg-member__info small { color: var(--dsg-muted); }

/* Programs */
.dsg-programs .dsg-grid { margin-top: 26px; }
.dsg-program { display: block; text-decoration: none; color: var(--dsg-navy); position: relative; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.dsg-program img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dsg-program__icon { position: absolute; left: 14px; bottom: 42px; width: 46px; height: 46px; border-radius: 50%; background: var(--dsg-orange); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.dsg-program h3 { padding: 26px 14px 14px; }

/* Testimonials */
.dsg-arrows { display: flex; gap: 10px; }
.dsg-arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.dsg-slider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dsg-slider::-webkit-scrollbar { display: none; }
.dsg-quote { margin: 0; padding: 20px 22px; border: 1px solid var(--dsg-border); border-radius: 8px; font-size: 13px; scroll-snap-align: start; }
.dsg-quote > i { color: var(--dsg-orange); font-size: 20px; }
.dsg-quote p { margin: 8px 0 10px 24px; }
.dsg-quote cite { margin-left: 24px; color: var(--dsg-muted); font-style: normal; }

/* Events */
.dsg-event { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.dsg-event img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dsg-event__body { padding: 14px; font-size: 12px; }
.dsg-event__body h3 { font-size: 14px; }

/* Stories */
.dsg-story { position: relative; display: block; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; }
.dsg-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dsg-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.dsg-story__title { position: absolute; left: 16px; right: 60px; bottom: 16px; z-index: 1; font-weight: 600; font-size: 15px; line-height: 1.3; }
.dsg-story__go { position: absolute; right: 14px; bottom: 16px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--dsg-orange); display: grid; place-items: center; font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
	.dsg-grid--3, .dsg-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.dsg-features { grid-template-columns: 1fr; }
	.dsg-features__item { border-right: 0; border-bottom: 1px solid var(--dsg-border); }
	.dsg-about__grid { grid-template-columns: 1fr; }
	.dsg-slide { background-position: 72% center; }
	.dsg-slide::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.82); }
	.dsg-hero__content { max-width: 100%; }
	.dsg-slides { aspect-ratio: auto; min-height: 520px; }
	.dsg-hero__nav { display: none; }
}
@media (max-width: 600px) {
	.dsg-grid--3, .dsg-grid--4 { grid-template-columns: 1fr; }
	.dsg-slider { display: flex; }
	.dsg-slider .dsg-quote { flex: 0 0 85%; }
	.dsg-head { flex-direction: column; }
}

.dsg-team .dsg-btn { margin-top: 30px; }
.dsg-member img, .dsg-program img, .dsg-story img, .dsg-event img { width: 100%; }
.dsg-member img { aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top; }

/* About – expanded */
.dsg-about { background: linear-gradient(180deg, #fff 0%, var(--dsg-tint) 100%); }
.dsg-about__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
.dsg-about__intro { font-size: 17px !important; font-weight: 500; color: var(--dsg-navy); }
.dsg-about__list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.dsg-about__list i { color: var(--dsg-orange); margin-right: 8px; }
.dsg-about__actions { display: flex; align-items: center; gap: 22px; }
.dsg-about__link { color: var(--dsg-navy); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dsg-orange); }
.dsg-about__media { position: relative; padding: 0 18px 18px 0; }
.dsg-about__frame { position: relative; }
.dsg-about__frame::before { content: ""; position: absolute; right: -18px; bottom: -18px; width: 80%; height: 80%; border: 3px solid var(--dsg-orange); border-radius: 14px; z-index: 0; }
.dsg-about__frame img { position: relative; z-index: 1; width: 100%; border-radius: 14px; box-shadow: 0 14px 40px rgba(15,29,56,.18); }
.dsg-about__badge { position: absolute; left: -18px; bottom: 34px; z-index: 2; background: var(--dsg-orange); color: #fff; border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 24px rgba(239,108,0,.35); }
.dsg-about__badge strong { font-family: 'Playfair Display', serif; font-size: 36px; line-height: 1; }
.dsg-about__badge span { font-size: 12px; line-height: 1.3; }
.dsg-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dsg-navy); border-radius: 14px; overflow: hidden; }
.dsg-stats__item { padding: 26px 16px; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.dsg-stats__item:last-child { border-right: 0; }
.dsg-stats__item strong { display: block; font-family: 'Playfair Display', serif; font-size: 34px; color: #ffa04d; line-height: 1.1; }
.dsg-stats__item span { font-size: 13px; opacity: .85; }
@media (max-width: 900px) {
	.dsg-about__grid { grid-template-columns: 1fr; gap: 40px; }
	.dsg-stats { grid-template-columns: repeat(2, 1fr); }
	.dsg-stats__item:nth-child(2) { border-right: 0; }
	.dsg-stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}


/*Phil*/
/* Delhi Study Group – Philanthropy page (self-contained) */
.dsg-ph {
	--ph-orange: #ef6c00;
	--ph-navy: #0f1d38;
	--ph-text: #333;
	--ph-muted: #666;
	--ph-tint: #fbf7f2;
	--ph-border: #e8e2da;
	font-family: 'Poppins', sans-serif; color: var(--ph-text); line-height: 1.7;
}
.dsg-ph *, .dsg-ph *::before, .dsg-ph *::after { box-sizing: border-box; }
.dsg-ph__wrap { width: min(1180px, 92%); margin: 0 auto; }
.dsg-ph h1, .dsg-ph h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--ph-navy); line-height: 1.2; margin: 0 0 14px; }
.dsg-ph p { margin: 0 0 14px; }

/* Intro */
.dsg-ph__hero {background: linear-gradient(135deg, #efb366 0%, #ffe7e7 60%); padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--ph-border); }
.dsg-ph__eyebrow { display: inline-block; color: var(--ph-orange); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.dsg-ph__hero h1 { font-size: clamp(30px, 4.5vw, 46px); max-width: 820px; margin-inline: auto; }
.dsg-ph__hero > .dsg-ph__wrap > p { max-width: 680px; margin: 0 auto 22px; color: var(--ph-muted); font-size: 15px; }
.dsg-ph__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dsg-ph__facts li { background: #fff; border: 1px solid var(--ph-border); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 500; color: var(--ph-navy); }
.dsg-ph__facts i { color: var(--ph-orange); margin-right: 6px; }

/* Stories */
.dsg-ph__stories { padding: 40px 0 20px; }
.dsg-ph__item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--ph-border); }
.dsg-ph__item:last-child { border-bottom: 0; }
.dsg-ph__item:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.dsg-ph__item:nth-child(even) .dsg-ph__media { order: 2; }

.dsg-ph__media { position: relative; margin: 0; }
.dsg-ph__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--ph-orange); border-radius: 14px; }
.dsg-ph__item:nth-child(even) .dsg-ph__media::before { inset: 18px 18px -18px -18px; }
.dsg-ph__media img { position: relative; width: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 36px rgba(15,29,56,.16); display: block; background: #efeae4; }
.dsg-ph__num { position: absolute; left: 16px; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--ph-orange); color: #fff; display: grid; place-items: center; font: 600 15px 'Poppins', sans-serif; border: 3px solid #fff; }

.dsg-ph__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ph-muted); margin-bottom: 10px !important; }
.dsg-ph__meta i { color: var(--ph-orange); margin-right: 5px; }
.dsg-ph__body h2 { font-size: clamp(22px, 2.6vw, 30px); }
.dsg-ph__body p { font-size: 14.5px; }
.dsg-ph__tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dsg-ph__tags li { background: var(--ph-tint); border: 1px solid var(--ph-border); color: var(--ph-navy); font-size: 12px; padding: 4px 12px; border-radius: 20px; }

/* CTA */
.dsg-ph__cta { background: var(--ph-navy); color: #fff; text-align: center; padding: 60px 0; margin-top: 30px; }
.dsg-ph__cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.dsg-ph__cta p { max-width: 560px; margin: 0 auto 22px; opacity: .85; font-size: 14.5px; }
.dsg-ph__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ph-orange); color: #fff; padding: 12px 28px; border-radius: 30px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.dsg-ph__btn:hover, .dsg-ph__btn:focus-visible { background: #c95a00; color: #fff; }
.dsg-ph__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
	.dsg-ph__item, .dsg-ph__item:nth-child(even) { grid-template-columns: 1fr; gap: 34px; padding: 34px 0; }
	.dsg-ph__item:nth-child(even) .dsg-ph__media { order: 0; }
	.dsg-ph__media::before, .dsg-ph__item:nth-child(even) .dsg-ph__media::before { inset: 12px -10px -12px 10px; }
	.dsg-ph__hero { padding: 44px 0 34px; }
}


/* =========================================================
   DESCRIPTION COLLAPSE
========================================================= */

.dsg-ph__description {
	position: relative;
	max-height: 105px;
	overflow: hidden;
	transition: max-height 0.4s ease;
}


/* Fade effect */

.dsg-ph__description:not(.is-expanded)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;

	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0),
		#fff
	);

	pointer-events: none;
}


/* Expanded */

.dsg-ph__description.is-expanded {
	max-height: 2000px;
}


.dsg-ph__description.is-expanded::after {
	display: none;
}


/* Paragraph */

.dsg-ph__description p {
	margin-bottom: 14px;
}


/* =========================================================
   READ MORE BUTTON
========================================================= */

.dsg-ph__readmore {
	display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
    background: #ef5f34;
    padding: 10px;
    border-radius: 10px;
}


.dsg-ph__readmore:hover {
	color: #000;
}


.dsg-ph__readmore i {
	font-size: 10px;

	transition: transform 0.3s ease;
}


/* =========================================================
   TAGS SPACING
========================================================= */

.dsg-ph__readmore + .dsg-ph__tags {
	margin-top: 18px;
}



@media (max-width: 767px) {

	.dsg-ph__description {
		max-height: 96px;
	}

	.dsg-ph__readmore {
		font-size: 12px;
	}

}