*{
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
}

:root {
	-color-primary: #6c63ff;
	-color-success: #00bf8e;
	-color-warning: #f7c94b;
	-color-danger: #f75842;
	-color-danger-variant: rgba(247,88,66,0.4);
	-color-white:#fff;
	-color-light: rgba(255,255,255,0.7);
	-color-black:#000;
	-color-bg: #1f2641;
	-color-bg1: #2e3267;
	-color-bg2: #424890;
	
	-container-width-lg:80%;
	-container-width-md:90%;
	-container-width-sm:94%;
	
	-transition: all 400ms ease;
}

body {
	font-family: 'Montserrat', sans-serif;
	line-height: 1.7;
	color:white;
	background: #1f2641;
}

.container{
	width:80%;
	margin: auto;
}

section {
	padding: 6rem 0;
}

section h2{
	text-align: center;
	margin-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5{
	line-height: 1.2;
}

h1{
	font-size: 2.4rem;
}

h2{
	font-size: 2rem;
}

h3{
	font-size: 1.6rem;
}

h4{
	font-size: 1.3rem;
}

a{
	color: white;
}

img{
	width: 100%;
	display: block;
	object-fit: cover;
}
/* =========== NAVBAR ========== */
nav{
	background: transparent;
	width: 100vw;
	height: 5rem;
	position: fixed;
	top: 0;
	z-index: 11;
}

/* change navbar styles on scroll using javascript */
.window-scroll{
	background: #6c63ff;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.nav_container{
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav button {
	display: none;
}

.nav_menu{
	width: 50%;
	height: 60px;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav_menu a{
	font-size: 0.9rem;
	transition: all 400ms ease;
	padding: 8px 17px;
}

.nav_menu a:hover{
	color:#424890;
}

/* =========== HEADER ========== */
header{
	position: relative;
	top: 5rem;
	overflow: hidden;
	height: 70vh;
	margin-bottom: 5rem;
}
.header_container{
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 5rem;
	height: 100%;
	align-items: center;
}

.header_left p{
	margin: 1rem 0 2.4rem;
	font-size: 1rem;
}

/* =========== CATEGORIES ========== */
.categories {
	background: #2e3267;
	height: 32rem;
}

.categories h1{
	line-height: 1;
	margin-bottom: 2rem;
}

.categories_container{
	display: grid;
	grid-template-columns: 40% 60%;
	gap: 4rem;
}

.categories_left{
	margin-right: 2rem;
}

.categories_left p {
	margin: 1rem 0 2.4rem;
	font-size: 0.85rem;
	
}

.categories_right{
	display:grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
}

.category{
	background: #424890;
	padding: 2rem;
	border-radius: 2rem;
	transition: all 400ms ease;
}

.category:hover{
	box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
	z-index: 1;
}

.category:nth-child(2) .category_icon {
	background: #f75842;
}

.category:nth-child(3) .category_icon {
	background: #e35aed;
}

.category:nth-child(4) .category_icon {
	background: #fca311;
}

.category:nth-child(5) .category_icon {
	background: #00bf8e;
}

.category_icon{
	background: #6c63ff;
	padding: 0.7rem;
	border-radius: 0.9rem;
}

.category h5{
	margin: 2rem 0 1rem;
}

.category p {
	font-size: 0.70rem;
}

/* =========== CAUSES ========== */
.cause{
	margin-top: 10rem;
}

.causes_container{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.causes{
	background: #2e3267;
	text-align: center;
	border: 1px solid transparent;
}

.causes:hover {
	background: transparent;
	border-color: #6c63ff;
	transition: all 400ms ease;
}

.causes_info{
	padding: 2rem;
}

.causes_info p {
	margin: 1.2rem 0.2rem;
	font-size: 0.9rem;
}

/* =========== FAQS ========== */

.faqs{
	background:  #2e3267;
	box-shadow: inset 0 0 3rem rgba(0,0,0,0.5);
}

.faqs_container{
	display: grid;
	grid-template-columns:1fr 1fr;
	gap: 1rem;
}

.faq{
	padding: 2rem;
	display: flex;
	align-items: center;
	gap:1.4rem;
	height:auto;
	background: #6c63ff;
	cursor: pointer;
}

.faq h4{
	font-size: 1rem;
	line-height: 2.2;
}

.faq_icon{
	align-self: flex-start;
	font-size: 1.2rem;
}

.faq p {
	margin-top: 0.8rem;
	display: none;
}

.faq.open p {
	display: block;
}

/* =========== TESTIMONIALS ========== */
.testimonials_container{
	overflow: hidden;
	position: relative;
	margin-bottom: 5rem;
}

.testimonial {
	padding-top: 2rem;
}

.avatar{
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1rem;
	border: 1rem solid #2e3267;
}

.testimonial_info{
	text-align: center;
}

.testimonial_body{
	background: #6c63ff;
	padding: 2rem;
	margin-top: 3rem;
	position:relative;
}

.testimonial_body::before{
	content: "";
	display: block;
	background:linear-gradient(135deg,transparent,#6c63ff,#6c63ff,#6c63ff);
	width: 3rem;
	height: 3rem;
	position: absolute;
	left: 50%;
	top: -1.5rem;
	transform: rotate(45deg);
}

/* =========== FOOTER ========== */
footer{
	background: #2e3267;
	padding-top: 5rem;
	font-size: 0.9rem;
}

.footer_container{
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 5rem;
}

.footer_container > div h4{
	margin-bottom: 1.2rem;
}

.footer_1 p {
	margin: 0 0 2rem;
}

footer ul li {
	margin-bottom: 0.7rem;
}

footer ul li a:hover {
	text-decoration: underline;
}

.footer_socials{
	display: flex;
	gap: 1rem;
	font-size: 1.2rem;
	margin-top: 2rem;
}

.footer_copyright{
	text-align: center;
	margin-top: 4rem;
	padding: 1.2rem 0;
	border-top: 1px solid #424890;
}

/* =========== MEDIA QUERIES (TABLETS) ========== */

@media screen and (max-width:1024px){
	.container{
		width: 90%;
	}
	
	h1{
		font-size: 2.4rem;
	}
	
	h2{
		font-size: 1.7rem;
	}
	
	h3{
		font-size: 1.4rem;
	}
	
	h4{
		font-size: 1.2rem;
	}
	
	/* =========== NAVBAR =========*/
	nav button {
		display: inline-block;
		background: transparent;
		font-size: 1.8rem;
		color: white;
		cursor: pointer;
	}
	
	nav button#close-menu-btn{
		display: none;
	}
	
	.nav_menu{
		position: fixed;
		top: 5rem;
		right: 5%;
		height: fit-content;
		width: 18rem;
		flex-direction: column;
		gap: 0;
		display: none;
	}
	
	.nav_menu li{
		width: 100%;
		height: 5.8rem;
	}
	
	.nav_menu li a{
		background: #6c63ff;
		box-shadow: -4rem 6rem 10rem rgba(0,0,0,0.6);
		width: 100%;
		height: 100%;
		display: grid;
		place-items: center;
	}

	.nav_menu li a:hover{
		background: #424890;
		color: white;
	}
	
	/* =========== HEADER ========== */
	header{
		height: 52vh;
		margin-bottom: 6rem;
	}
	
	.header_container{
		gap: 0;
		padding-bottom: 3rem;
	}
	
	/* =========== CATEGORIES ========== */
	.categories{
		height: auto;
	}
	
	.categories_container{
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	
	.categories_left{
		margin-right: 0;
	}
	
	/* =========== CAUSES ========== */
	.cause{
		margin-top: 0;
	}
	
	.causes_container{
		grid-template-columns: 1fr 1fr;
		
	}
	
	/* =========== FAQS ========== */
	.faqs_container{
		grid-template-columns: 1fr;
	}
	
	.faq{
		padding: 1.5rem;
	}
	
	/* =========== FAQS ========== */
	.footer_container{
		grid-template-columns: 1fr 1fr;
	}
	
}


	
/* =========== MEDIA QUERIES (PHONES) 	========== */
@media screen and (max-width: 600px){
	.container{
		width: 94%;
	}
	
	/* =========== NAVBAR =========*/
	.nav_menu{
		right: 3%;
	}
	
	/* =========== HEADER =========*/
	header{
		height: 100vh;
	}
	
	.header_container{
		grid-template-columns: 1fr;
		text-align: center;
		margin-top: 1rem;
	}
	
	.header_left p {
		margin-bottom: 1.3rem;
	}
	
	/* =========== CATEGORIES =========*/
	.categories_right{
		grid-template-columns: 1fr 1fr;
		gap: 0.7rem;
	}
	
	.category{
		padding: 1rem;
		border-radius: 1rem;
	}
	
	.category_icon{
		margin-top: 4px;
		display: inline-block;
	}
	
	/* =========== CAUSES =========*/
	.causes_container{
		grid-template-columns: 1fr;
	}
	
	/* =========== TESTIMONIALS =========*/
	.testimonial_body{
		padding: 1.2rem;
	}
	
	/* =========== FOOTER =========*/
	.footer_container{
		grid-template-columns: 1fr;
		text-align:center;
		gap: 2rem;
	}
	
	.footer_1 p {
		margin: 1rem auto;
	}
	
	.footer_socials{
		justify-content: center;
	}
}
