@media (min-width: 1360px) and (max-width: 1550px) {
	.main-navigation {
		margin: 0;
	}
	section.one-column-section.inline_padding {
		padding-left: 96px !important;
		padding-right: 96px !important;
	}
	
	
}

@media (min-width: 1440px) and (max-width: 1615px) {
    .one-column-section .container.inline_padding {
        padding: 56px 96px !important;
    }
	.one-column-section .container {
		    padding: 64px 96px;
	}
	
	section.anchor-section {
		margin: 0 auto;
		max-width: 1560px;
	}
	
	.anchor-section .container {
		padding: 56px 96px;
	}
}

@media (min-width: 1081px) {

	.page-header.extra-padding .header-content .text-content{
	    padding-top: 60px;
	    padding-bottom: 30px;
	}

}

@media (min-width: 1081px) and (max-width: 1360px) {
	
	.page-header .header-content .text-content{
		flex: 50%;
	}

	.page-header .image-content {
	    flex: 50%;
	}


	
}	

@media (max-width: 1080px) {
	
	/*Header*/
	.header-actions {
		display: none;
	}
	
	.header-section {
		padding: 24px;
	}
	
	.header-actions {
		display: none;
	}
	.page-header .image-content img {
		width: 100%;
	}
	
	.page-header .header-content {
		padding: 0;	
	}
	
	.page-header .text-content {
		padding-right: 0px; 
	}
	
	.page-header .container {
		padding: 24px 0;
	}
	
	.header-navigation {
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.80);
		box-shadow: 0px 0px 30px 0px rgba(36, 0, 68, 0.05);
		backdrop-filter: blur(20px);
		display: flex;
		height: 70px;
		padding: 24px 16px 24px 24px;
		justify-content: space-between;
		align-items: center;
		margin:0;
	}
	
	.site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
		max-width: 80px;
    }
	
	.page-header .header-content {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        width: 100%;
    }

    /* Move the image first */
    .page-header .image-content {
        order: -1; /* Image comes first */
        width: 100%;
        margin-bottom: 20px; /* Space between image and text */
    }

    .page-header .image-content a{
    	width: 100%;
    }

    .page-header .image-content img {
	    width: 100%;
	    max-width: 100%;
	}

	.content_description {
	    padding: 24px 0;
	}

    /* Text content comes after the image */
    .page-header .text-content {
        order: 0;
        width: 100%;
    }
	
	h1 {
		color: var(--Purple-500, #3F0077);
		font-family: "Aktiv Grotesk";
		font-size: 30px;
		font-style: normal;
		font-weight: 700;
		line-height: 30px;
	}
	
	h2 {
		font-size: 24px;
	}
	
	h2.main-title {
		color: var(--Purple-500, #3F0077);
		font-family: "Aktiv Grotesk";
		font-size: 24px;
		font-style: normal;
		font-weight: 700;
		line-height: 32px;
	}

	p {
		color: var(--Gray-800, #1D2939);
		font-family: "Aktiv Grotesk";
		font-size: 18px;
		font-style: normal;
		font-weight: 400;
		line-height: 22px;
	}
	p.faqs-first-par {
		color: var(--Gray-700, #344054);
		font-family: "Aktiv Grotesk";
		font-size: 20px;
		font-style: normal;
		font-weight: 300;
		line-height: 26px;
	}
	h2.question-text {
		color: var(--Purple-500, #3F0077);
		font-family: "Aktiv Grotesk";
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
		line-height: 22px;
	}
	
	.faq-answer {
		color: var(--Gray-700, #344054);

		/* Text sm/Regular */
		font-family: "Aktiv Grotesk";
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 20px; /* 142.857% */
	}

    /* Keep buttons below the text */
    .cta-buttons {
        order: 1;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    /* Adjust button width for mobile */
    .cta-button {
        width: 48%; 
        text-align: center;
        padding: 10px 20px;
    }

	a.cta-button.purple {
		width: auto;
		margin: 10px 0;
	}	

	a.cta-button.transparent_purple_border {
		width: auto;
	}
	/* Help Section */
	.help_grid {
		flex-wrap: nowrap;
	}
	.help_layout {
		display: flex;
		gap: 16px;
		align-items: center;
		padding: 32px 56px;
		flex-direction: column;
	}
	
    .help_box {
        flex: 1 1 calc(50% - 16px); /* 2 columns on mobile */
    }

    .help_box.full_width {
        flex: 1 1 100%; /* Full-width for the last box */
    }
	.section_heading_wrapper {
		max-width: 100%;
	}
	
	/*upcoming event*/
	.upcoming_events_block {
		padding: 32px 56px 40px 56px;
	}
	/*four columns block*/
	.four-columns-block .container {
		flex-direction: column;
		gap:0;
	}
	
	.four-columns-block {
		padding: 32px 56px 40px 56px;
	}
	.four-columns-block .grid {
		flex-wrap: wrap;
	}	
	.grid-item {
		flex: 0 0 calc(50% - 16px);
	}
	/*End four columns*/
	
	/* Content with Image Section */
	  /* Adjust wrapper for mobile */
    
    /* Image first */
    .content_image {
        order: -1; /* Move the image to the top */
        width: 100%;
        text-align: center;
    }

    /* Text and other content */
    .content_text {
        width: 100%; 
        display: flex;
        flex-direction: column;
        gap: 0px;
        padding: 0; 
    }

    .content_image_section_inner.has_bg .content_text {
	    padding: 32px;
	}

	.content_image_section_inner.has_bg .content_description {
	    padding-top: 0;
	}
	
	.content_image_section_inner.has_bg h4{
		margin-top: 0;
	}

    /* Key points should take full width */
   
    .key_points li {
        padding: 10px;
        border-radius: 100px;
        text-align: center;
        font-family: "Aktiv Grotesk";
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
    }

    /* Adjust CTAs to be full width */
    .cta-buttons {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cta-buttons .cta-button {
        width: 48%; /* Make buttons fit side by side on smaller screens */
        padding: 10px 20px;
        text-align: center;
    }
	
	.content_image_section {
	    padding: 32px 24px;
	}
		
	.content_image_section .container {
     padding: 0;
	}
	
	.container.digibete_app_section {
		padding: 24px;
	}
	
	/* Events Grid*/	
    .events-grid {
        grid-template-columns: 1fr;
    }
	.four-columns-block .four-columns {
        flex-direction: column;
    }
	
	/* Footer General Styles */
.site-footer {
    background: linear-gradient(313deg, #1D3C94 24.08%, #3F0077 63%);
    padding: 32px 56px 40px 56px;
    color: #fff;
}

/* Footer Container - 4 Columns */
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-widget {
    flex: 1 1 calc(25% - 32px); /* 4 columns with spacing */
    min-width: 200px;
}

/* Footer Logo */
.footer-logo img {
    max-width: 160px;
    height: auto;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--Turquoise-300, #4DC1C1);
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Footer Text */
.footer-text {
    color: var(--Base-White, #FFF);
    font-family: "Aktiv Grotesk";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 150% */
}

/* Footer Headings */
.footer-heading {
    color: var(--Orange-400, #F9B462);
    font-family: "Aktiv Grotesk";
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 133.333% */
    margin-bottom: 16px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFD700;
}

    /* Adjust footer container to stack content */
    .footer-copyright-container {
        flex-direction: column; /* Stack content vertically */
        align-items: center;
        padding: 16px; /* Reduce padding for smaller screens */
        text-align: left;
        gap: 16px; /* Add spacing between elements */
    }

    /* Center and stack the copyright text */
    .footer-copyright {
        flex-direction: column; /* Stack text and right-hand section */
        align-items: center;
        justify-content: center;
    }
	p.copyright-text a {
		margin: 0px 8px;
	}

    /* Adjust copyright text */
    p.copyright-text {
        gap: 8px; /* Reduce spacing between links */
        display: block; /* Ensure it wraps properly */
        margin-bottom: 8px; /* Add spacing below */
    }

    /* Right-hand text adjustment */
    .copyright-right {
        text-align: center; /* Center-align the text */
        margin-top: 8px; /* Add spacing above */
    }



/*News */
    /* Adjust the news header */
    .news-block {
		padding: 40px 32px;
	}

    .view-all-news {
        margin-top: 8px; /* Space below the heading */
    }
    /* Full-width news items */
    .news-item {
        width: 100%; /* Make each item take up full width */
    }

    /* Adjust news images */
    .news-image img {
        height: auto; /* Let the height adjust automatically */
    }
	
	    /* Contact Us Footer Block */
    .contact-us-footer-block {
		padding: 32px;
        gap: 24px; /* Adjust gap between elements */
    }

    /* Individual Contact Block */
    .contact-block {
        width: 100%; /* Ensure blocks take full width */
		padding: 32px;
        gap: 12px; /* Adjust spacing between contact details */
    }

    /* Block Title */
    .block-title {
        font-size: 24px; /* Adjust font size for smaller screens */
        line-height: 32px; /* Adjust line height */
    }

    /* Contact Detail */
    .contact-detail {
        gap: 8px; /* Reduce spacing between icon and text */
    }

    /* Contact Icons */
    .contact-icon {
        width: 16px; /* Reduce icon size */
        height: 16px; /* Reduce icon size */
    }

    /* Contact Block Heading */
    span.contact-block-heading {
        font-size: 14px; /* Adjust heading font size */
        line-height: 18px; /* Adjust line height */
    }

    /* Address Field */
    span.address_field p {
        font-size: 14px; /* Adjust font size */
        line-height: 18px; /* Adjust line height */
        padding-left: 24px; /* Reduce padding for smaller screens */
    }

    /* Contact Links */
    a.contact-link {
        font-size: 14px; /* Adjust font size */
        line-height: 18px; /* Adjust line height */
        padding-left: 24px; /* Reduce padding for smaller screens */
    }
	.stories-container {
		padding: 64px 32px;
	}
	.heading-container {
		padding: 0 32px 16px;
	}
	section.text_editor_section.contact_form {
		padding: 24px;
		margin: 24px;
	}	
	
	.form-row {
		gap: 0;
		flex-direction: column;
	}
	form.wpcf7-form.init p {
		margin: 0;
		padding-bottom: 0;
	}
	section.faq-section {
		padding: 24px;
	}
	
	section.faq-section.no-background {
		padding: 24px;
	}

	.resource-items-grid {
		grid-template-columns: repeat(1, 1fr);
	}
	
	.hero-container {
        max-width: 100%;
        padding-top: 100px;
		padding: 24px 0;
    }
	.entry-content {
		padding: 32px 24px;
	}
	
	.content_text.has-background {
		padding: 0 24px 24px;
	}
	.content_image.has-background
	 {
		padding: 24px 24px 0;
	}
}

@media (max-width: 768px) {

	#mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
	    display: flex;
	    gap: 16px;
	    max-height: 80vh;
	    overflow: scroll;
	}

	.donate-button{
		margin-top: 30px;
	}

	.member-button{
		display: flex;
		margin-bottom: 60px;
	}

    .news-image img {
        height: 230px;
    }

	h1 {
		font-size: 20px;
		font-weight: 700;
		line-height: 26px;
	}
	
	p.phone-number {
		color: var(--Purple-500, #3F0077);

		/* Text xl/Bold */
		font-family: "Aktiv Grotesk";
		font-size: 20px;
		font-style: normal;
		font-weight: 700;
		line-height: 26px; /* 130% */
	}
	.call-label {
		color: var(--Gray-800, #1D2939);

		/* Text sm / Bold */
		font-family: "Aktiv Grotesk";
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: 20px; /* 142.857% */
	}
	
	.help_layout {
        padding: 24px;
		align-items: center;
    }
	.help_grid {
         flex-wrap: wrap; 
    }
	.upcoming_events_block {
        padding: 24px;
    }
	.event-item {
		padding: 16px;
	}
	.event-image img {
		width: 100px;
		height: 100px;
		object-fit: cover;
	}
	.event-title a {
		font-size: 16px;
		font-weight: 700;
		line-height: 22px;
	}
	.upcoming_events_block .header {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: 24px;
		flex-direction: column;
	}
	.upcoming_events_block .header-left h2 {
		font-size: 24px;
		font-style: normal;
		font-weight: 300;
		line-height: 38px;
	}
	.event-date, .event-location {
		font-size: 12px;
		font-style: normal;
		font-weight: 400;
		line-height: 18px;
	}
	.four-columns-block {
        padding: 24px;
    }

	.four-columns-block .grid-item .image-wrapper img {
		width: 100%;
		object-fit: cover;
		height: 300px;
		border-radius: 8px;
	}
	
	.heading-wrapper {
		max-width: 100%;
	}
	
	.heading-container h2 {
		font-size: 24px;
		line-height: 32px;
	}
	.heading-container {
		justify-content: center;
		align-items: center;
	}
	.four-columns-block .section-heading {
		font-size: 24px;
		font-style: normal;
		font-weight: 300;
		line-height: 32px;
	}
	.grid-item {
        flex: 100%;
    }
	.content_image_wrapper {
		flex-wrap: wrap;
		flex-direction: column;
		gap:0;
	}
	.key_points {
		display: flex;
		gap: 10px;
		flex-direction: column;
		padding-top: 16px;
	}
	
	.stories-container {
		padding: 24px;
	}

	.stories-container .heading-container {
    	padding-bottom: 0;
	}

	.stories-container .heading-container h2 {
	    margin-bottom: 0;
	}

	.background-image-section {
		height: 400px;
		background-size: cover;
		background-position: center center;
		border-radius: 12px;
		position: relative;
		z-index: 1;
	}
	
	.slider-overlap {
	    position: absolute;
	    bottom: 0;
	    left: 0;
	    right: 0;
	    z-index: 2;
	}
	
	.story-thumbnail {
	    margin: 0 16px;
	}

	.story-view a.view-all-mobile {
	    margin-top: 24px;
	}

	.story-view {
		padding-top: 32px;
	}
	.slick-dots {
		right: 0;
	}
	.items-container {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 20px;
	}
	.support-us-banner {
		background: linear-gradient(90deg, #653392 0%, #3F0077 44%, #1D3C94 100%);
		display: flex;
		padding: 32px 24px 32px 56px;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		align-self: stretch;
	}
	    .news-block {
        padding: 32px 24px 24px 24px;
    }
	
	.news-header {
		display: flex;
		align-items: flex-start;
		width: 100%;
		gap: 0;
		margin-bottom: 0;
		flex-direction: column;
	}
	.news-content {
		display: flex;
		justify-content: space-between;
		gap: 20px;
		width: 100%;
		flex-direction: column;
	}
	    .contact-us-footer-block {
        padding: 24px;
        gap: 24px;
    }
	.contact-blocks-container {
		display: flex;
		gap: 24px;
		width: 100%;
		flex-direction: column;
	}
	
	a.view-all-desktop {
		display:none
	}
	a.view-all-mobile {
		color: var(--Purple-500, #3F0077);
		font-family: "Aktiv Grotesk";
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		text-decoration: none;
		line-height: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
        padding: 32px 16px 16px 24px;
	}
	  .timeline-line {
        display: none;
    }
	
	section.one-column-section {
	    padding: 24px;
	    /*max-width: calc(100% - 48px);*/
	    margin: 0 auto;
	}
	.container.inline_padding {
		padding: 24px !important;
	}

	section.one-column-section.contact_form{
		max-width: 100%;
	}

	section.one-column-section.contact_form .column-content {
	    max-width: 100%;
	}
	
	.one-column-section .container {
		padding: 0px;
	}

	.one-column-section.contact_form  .container{
		padding: 32px;
	}
	
}

@media (max-width: 991px) {

    .listing-container {
        padding: 40px 32px 48px 32px;
    }

    .filters-search-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .filters-container {
	    justify-content: center;
	    flex-wrap: wrap;
	}

    .search-container {
        justify-content: center;
    }

    .search-input-wrapper {
        width: 100%;
        max-width: 400px;
    }

    /* Adapt grid to stack on tablets */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
	
	/*Content/Image Gallery*/
	.section-description {
        font-size: 15px;
        line-height: 21px;
    }
	.section-heading {
        font-size: 26px;
        line-height: 34px;
    }
	.bottom-image {
        width: 350px;
        height: 209px;
    }
	.top-image {
        width: 403px;
        height: 197px;
    }
	.main-image {
        width: 684px;
        height: 384px;
        left: -243px;
    }
	.images-container {
        width: 480px;
        height: 384px;
    }
    .strategy-vision-section {
        padding: 48px 48px 48px 0;
        gap: 40px;
    }
}

@media (max-width: 640px) {
	/* Content and image Gallery Section */
	.strategy-cta-button {
        width: 100%;
        justify-content: center;
    }
	.section-description {
        font-size: 14px;
        line-height: 20px;
    }
	.section-heading {
        font-size: 24px;
        line-height: 32px;
    }
	.content-section {
        order: 1;
        width: 100%;
    }
	.bottom-image {
        width: 100%;
        height: 152px;
        left: 0;
        top: -6px;
    }
	.bottom-image-wrapper {
        height: 140px;
    }
	.top-image {
        width: 100%;
        height: 152px;
        left: 0;
        top: -6px;
    }
	.top-image-wrapper {
        height: 140px;
    }
	.side-images-container {
        flex: 1;
    }
	.main-image {
        width: 100%;
        height: 300px;
        left: 0;
        position: relative;
    }
	
	.main-image-wrapper {
        flex: 1;
    }
	
    .images-container {
        width: 100%;
        height: 300px;
        order: 2;
    }
    .strategy-vision-section {
        flex-direction: column-reverse;
        padding: 32px 24px;
        gap: 32px;
    }
	
	/*Blog*/
    .listing-container {
        padding: 24px 16px 32px 16px;
    }

    .filter-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .filter-pill {
        font-size: 12px;
        height: 32px;
        padding: 6px 12px;
    }

    .input-field {
        height: 44px;
        padding: 10px 14px;
    }

    .search-button {
        font-size: 12px;
        height: 44px;
        padding: 12px 20px;
    }

    .blog-image {
        height: 180px;
        padding: 16px 0px;
    }

    .blog-content {
        padding: 16px;
    }

    .blog-title {
        font-size: 16px;
        line-height: 22px;
    }

    .blog-description {
        font-size: 13px;
        line-height: 18px;
    }

    .read-more-button {
        height: 34px;
        padding: 12px;
    }

    .button-text {
        font-size: 11px;
    }

    /* Adapt pagination for small screens */
    .pagination-list {
        flex-wrap: wrap;
        gap: 2px;
    }

    .page-link:not(.prev):not(.next) {
        font-size: 14px;
        width: 40px;
        height: 40px;
    }

    .page-link.dots {
        width: 20px;
    }
}


/* Focus management and accessibility */
.filter-pill:focus-visible,
.search-button:focus-visible,
.read-more-button:focus-visible,
.page-link:focus-visible {
    outline: 2px solid #3f0077;
    outline-offset: 2px;
    border-radius: 4px; /* Consistent focus ring */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .filter-pill.active {
        border-width: 3px;
    }

    .blog-tag {
        border: 1px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .filter-pill,
    .search-button,
    .read-more-button,
    .page-link {
        transition: none;
    }
}

/*Team Page*/
input.search-input {
    border: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section-title {
        color: #000;
    }

    .section-description,
    .member-name,
    .member-title {
        color: #000;
    }

    .placeholder-image {
        background-color: #ccc;
        border: 1px solid #000;
    }

    .placeholder-circle-top,
    .placeholder-circle-bottom {
        background-color: #999;
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .team-member {
        transition: none;
    }
}

/* Print styles */
@media print {
    .team-section {
        padding: 20px;
    }

    .team-grid {
        break-inside: avoid;
    }

    .team-member {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}


@media (max-width: 640px) {
    .two-columns-section {
        max-width: 640px;
        padding: 0 20px 40px 20px;
        gap: 16px;
    }
	.section-title {
        font-size: 20px;
        line-height: 28px;
    }
	.section-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
	.columns-wrapper {
        flex-direction: column;
        gap: 24px;
    }
	.column-content {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 991px) {
	.team-section {
        padding: 56px 24px;
    }

    .section-header {
        max-width: 100%;
    }

    .section-title {
        max-width: 100%;
    }

    .section-description {
        max-width: 100%;
		color: var(--Gray-700, #344054);

		/* Text sm/Regular */
		font-family: "Aktiv Grotesk";
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 20px; /* 142.857% */
    }
	
	h3.member-name {
		font-size: 14px;
	}
	
	p.member-title {
		color: var(--Gray-700, #344054);
		font-family: "Aktiv Grotesk";
		font-size: 12px;
		font-style: normal;
		font-weight: 400;
		line-height: 18px;
	}

    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    }
	
	.team-member {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;         /* ensures it never exceeds the grid column */
		box-sizing: border-box;
		min-width: 0;  
	}
	
	/* 2 Columns Text*/
    .two-columns-section {
        max-width: 991px;
        padding: 24px;
        gap: 20px;
    }

    .section-title {
        font-size: 20px;
        line-height: 26px;
    }
	
    .section-subtitle {
	    font-size: 18px;
	    line-height: 24px;
	    max-width: calc(100% - 32px);
	}

	.columns-wrapper {
	    gap: 40px;
	    flex-wrap: wrap;
	}

	.column-content {
	    font-size: 14px;
	    line-height: 20px;
	    max-width: calc(100% - 32px);
	}

    .anchor-section .column-content li{
    	max-width: 90%;
    }

    table {
	    display: block;
	    width: 100%;
	    max-width: 90%;
	    overflow-x: scroll;
	}

/*Resource*/

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-text-container {
        max-width: 100%;
    }
	.hero-title {
        max-width: 100%;
        font-size: 40px;
    }
	.hero-description {
        max-width: 100%;
    }
	.resource-listing {
        padding: 56px 20px 72px;
    } 
	.filter-controls {
        max-width: 100%;
    }
	.filter-group {
        max-width: 100%;
    }
	.filter-pills {
        max-width: 100%;
    }
	.dropdown-wrapper {
        white-space: initial;
    }
    .sort-dropdown {
        white-space: initial;
    }
    .blog-items-section {
        max-width: 100%;
    }
	.blog-items-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
	.blog-image-container {
        padding-bottom: 100px;
    }
	.blog-content {
        padding: 24px 20px;
    }
	.pagination {
        max-width: 100%;
        white-space: initial;
    }
	.pagination-nav {
        white-space: initial;
    }
}

@media (max-width: 640px) {
  .company-logo {
    width: 140px;
    height: 52px;
  }
}

@media (max-width: 640px) {
  .author-info {
    width: 100%;
    font-size: 12px;
    line-height: 18px;
  }
}

@media (max-width: 991px) {
  .quote-body {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (max-width: 640px) {
  .quote-body {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 991px) {
  .quote-body-container {
    height: auto;
    min-height: 80px;
  }
}

@media (max-width: 640px) {
  .quote-body-container {
    height: auto;
    min-height: 60px;
    gap: 12px;
  }
}


@media (max-width: 991px) {
  .testimonial-details {
    padding-left: 32px;
  }
}

@media (max-width: 640px) {
  .testimonial-details {
    padding-left: 16px;
    gap: 16px;
  }
}
@media (max-width: 991px) {
  .quote-text {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 640px) {
  .quote-text {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.48px;
  }
}

@media (max-width: 991px) {
  .foreground-image {
    width: 669px;
    height: 353px;
    left: -134px;
    top: 0px;
  }

    .how-we-help-section {
        padding: 48px 64px;
        gap: 48px;
        flex-direction: column;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 48px;
    }

    .how-we-help-section-header {
        align-items: center;
        text-align: center;
        min-width: auto;
        width: 100%;
    }

    .section-title {
        font-size: 28px;
        line-height: 36px;
    }

    .services-grid {
        gap: 40px;
    }

    .services-row {
        gap: 32px;
    }
	
	section.anchor-section .container, section.anchor-section {
		padding: 24px 0;
	}
}



@media (max-width: 640px) {
  .foreground-image {
    width: 487px;
    height: 256px;
    left: -100px;
    top: 0px;
  }
}@media (max-width: 991px) {
  .testimonial-image-container {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .testimonial-image-container {
    height: 250px;
  }
}

@media (max-width: 991px) {
  .testimonial-section {
    padding: 48px 64px;
    gap: 40px;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .testimonial-section {
    padding: 32px 24px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
    .how-we-help-section {
        padding: 32px 24px;
        gap: 32px;
    }

    .content-wrapper {
        gap: 32px;
    }

    .section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .donate-button {
        height: 48px;
        padding: 12px 24px;
    }

    .button-text {
        font-size: 14px;
        line-height: 20px;
    }

    .services-grid {
        gap: 32px;
    }

    .services-row {
        flex-direction: column;
        gap: 24px;
    }

    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-title {
        font-size: 14px;
        line-height: 20px;
    }

    .service-description {
        font-size: 14px;
        line-height: 20px;
		text-align: left;
    }
}
/* Megamenu Mobile Panels - Full-Screen Overlay Styles */
@media (max-width: 1360px) { /* Match your menu's data-breakpoint for mobile */

.search-trigger,
.search-close{
	display: none;
}

	header{
		position: relative;
    	z-index: 2;
	}

	.search_bar_container {
	    display: flex;
	}

	.search-form {
		min-width: 240px;
	    width: -webkit-fill-available;
	    padding-right: 0;
	    height: 52px;
	    margin-top: 16px;
	    margin-bottom: 24px;
	}

	.search-form input::placeholder {
	    color: var(--Purple-500, #3F0077);
	    font-family: "Aktiv Grotesk";
	    font-size: 16px;
	    font-style: normal;
	    font-weight: 400;
	    line-height: 22px; /* 137.5% */
	}

	/* Cross-browser fallbacks */
	.search-form input::-webkit-input-placeholder {
	    color: var(--Purple-500, #3F0077);
	}

	.search-form input:-ms-input-placeholder {
	    color: var(--Purple-500, #3F0077);
	}

	.search-form input::placeholder {
	    opacity: 1; /* Firefox */
	}

	.close_search{
		display: none;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
	    margin-top: 6px;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-menu-cta-donate{
		margin-top: 0px;
	}

	.main-navigation a {
	    display: flex;
	    align-items: center;
	}

  	.main-navigation {
	    flex-grow: 1;
	    margin: 0 15px;
	    position: absolute;
	    left: 10px;
	    top: 35px;
	}

	.mega-menu-toggle{
	  background-image: url(/wp-content/themes/diabetesireland/images/burger.svg) !important;
	  width: 70px;
	  height: 28px !important;
	}

	.mega-menu-toggle.mega-menu-open{
	  background-image: url(/wp-content/themes/diabetesireland/images/menu-open.svg) !important;
	  width: 32px;
	}

	#mega-menu-wrap-menu-1 .mega-menu-toggle .mega-toggle-block-1:after {
	  visibility: hidden;
	}
	
	#mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
        right: 0;
        top: 80px;
		border-radius: 8px;
		background: #FFF;
		box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.08);
    }
	
	#mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open:after {
        background: none;
    }
	
	#mega-menu-wrap-menu-1 .mega-menu-toggle ~ button.mega-close:before {
        display: none;
    }
	
	 #mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
        display: flex;
        gap: 16px;
    }
	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link {
		height: fit-content;
		line-height: normal;
		padding: 8px 12px 8px 14px;
		color: var(--Blue-500, #1D3C94);
		font-family: "Aktiv Grotesk";
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: 20px;
	}
	
	 .mega-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        z-index: 1001;
        padding: 5px;
        outline: none;
    }
    .mega-menu-toggle:focus {
        outline: 2px solid #3F0077;
    }
    .mega-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #3F0077;
        margin: 4px auto;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    /* Animate to X when active */
    .mega-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mega-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .mega-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
	
	#mega-menu-wrap-menu-1 #mega-menu-menu-1 li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator:after {
		content: '';  /* Removes the Dashicon arrow () */
		font-family: inherit;  /* Reset font-family if needed; no longer using dashicons */
		font-weight: normal;
		display: inline-block;
		margin: 0;
		vertical-align: top;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		transform: rotate(0);  /* Keeps it upright; adjust rotation if needed for hover states */
		color: inherit;
		position: relative;
		background: transparent;
		height: 10px;  /* Adjust height based on your arrow image (e.g., 8px for a small arrow) */
		width: 20px;  /* Adjust width based on your arrow image (e.g., 12px for a standard chevron) */
		right: auto;
		line-height: inherit;
		
		background-image: url('/wp-content/themes/diabetesireland/images/mega-menu-arrow.png');
		background-repeat: no-repeat;
		background-size: contain;  /* Ensures the image fits without distortion; adjust to 'cover' or specific size if needed */
		background-position: center;  /* Centers the image within the pseudo-element */
	}
	
	#mega-menu-wrap-menu-1 #mega-menu-menu-1 li.mega-menu-item-has-children.mega-toggle-on > a.mega-menu-link > span.mega-indicator:after {
        content: "";
    }
	
	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
		background: #653392;
		color: #fff;
		padding-left: 16px;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link  .mega-indicator{
		float: left;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link > span.mega-indicator {
	    background-image: url(/wp-content/themes/diabetesireland/images/chevron-left.svg);
	    background-size: 17px;
	    background-repeat: no-repeat;
	    margin-top: 2px;
	    margin-right: 15px;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link > span.mega-indicator:after{
		visibility: hidden;
	}

	#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column-standard > a.mega-menu-link, #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
	    padding: 8px 12px 8px 25px;
	}

	h4.mega-block-title {
		    display: none !important;
	}
	ul.mega-sub-menu img {
		display: none;
	}

	.custom-logo-link {
	    display: flex;
	}



}



@media (max-width: 1440px) {

	.page-header .header-content{
		padding-left: 0;
	}

}

@media (max-width: 1080px) {

	.main-navigation {
	    top: 20px;
	}

}



@media screen and (min-width: 1361px) {


.search_bar_container {
    display: none; /* JS sets to flex */
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: none;
    border-radius: 1000px;
    padding: 0 16px;
    padding-right: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding-right: 0;
}


}
