/*
Theme Name:     2UFi Financial Platform 2026
Theme URI:
Description:    Astra child theme for 2UFi.
Author:         DeltaV Digital
Author URI:     https://wwwdeltavdigital.com
Template:       astra
Version:        1.0.0
*/

/* =========================================
   Design Tokens
   ========================================= */
:root {
	--2ufi-brand-dark: #120A31;
	--2ufi-brand-navy: #091C30;
	--2ufi-brand-blue: #3677D7;
	--2ufi-brand-accent: #4A6BF0;
	--2ufi-secondary-periwinkle: #80A3FC;
	--2ufi-secondary-gold: #F4B949;
	--2ufi-secondary-orange: #EC702A;
	--2ufi-secondary-mint: #25D495;
	--2ufi-secondary-lilac: #F2F1FF;
	--2ufi-secondary-royal: #EDF0FD;
	--2ufi-tertiary-coral: #FE7878;
}

/* =========================================
   Base Typography
   ========================================= */
body,
.so-panel,
.so-widget {
	font-family: 'Inter', sans-serif;
}

/* =========================================
   Widget Reset — override Astra defaults
   ========================================= */
[class^="twoUfi-"] p,
[class*=" twoUfi-"] p {
	margin-bottom: 0;
}

/* =========================================
   Geometric Shape Classes
   ========================================= */
.shape-quarter-tl { border-radius: 0 0 100% 0; }
.shape-quarter-tr { border-radius: 0 0 0 100%; }
.shape-quarter-bl { border-radius: 0 100% 0 0; }
.shape-quarter-br { border-radius: 100% 0 0 0; }
.shape-half-l { border-radius: 0 100% 100% 0; }
.shape-half-r { border-radius: 100% 0 0 100%; }
.shape-half-t { border-radius: 0 0 100% 100%; }
.shape-half-b { border-radius: 100% 100% 0 0; }

/* =========================================
   Astra Sub Menu — adjust margin to account for header height
   ========================================= */
.ast-desktop .ast-builder-menu-1 .main-header-menu > li.menu-item > .sub-menu {
	margin-top: -15px;
}

/* =========================================
   Astra full-width override for blog home
   ========================================= */
.blog .ast-container #primary {
	width: 100%;
	flex-basis: 100%;
}

/* =========================================
   Blog Archive Header
   ========================================= */
.twoUfi-blog-header {
	padding: 32px 0 64px;
}

.twoUfi-blog-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	text-align: center;
}

@media (min-width: 640px) {
	.twoUfi-blog-header__inner {
		padding: 0 24px;
	}
}

@media (min-width: 1024px) {
	.twoUfi-blog-header__inner {
		padding: 0 32px;
	}
}

.twoUfi-blog-header__badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.2;
	margin-bottom: 24px;
}

.twoUfi-blog-header__title {
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	font-size: 48px;
	color: #091C30;
	margin: 0 0 24px;
	line-height: 1.1;
}

@media (min-width: 768px) {
	.twoUfi-blog-header__title {
		font-size: 72px;
	}
}

.twoUfi-blog-header__subtitle {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
	color: rgba(9, 28, 48, 0.7);
	max-width: 672px;
	margin: 0 auto;
}

/* =========================================
   Blog Archive Wrapper
   ========================================= */
.twoUfi-blog-archive {
	padding-bottom: 96px;
}

.twoUfi-blog-archive__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 640px) {
	.twoUfi-blog-archive__inner {
		padding: 0 24px;
	}
}

@media (min-width: 1024px) {
	.twoUfi-blog-archive__inner {
		padding: 0 32px;
	}
}

/* =========================================
   2UFi Blog Loop Grid
   ========================================= */
.twoUfi-blog-loop {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 768px) {
	.twoUfi-blog-loop {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.twoUfi-blog-loop {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* =========================================
   Card Base
   ========================================= */
.twoUfi-blog-card {
	display: block;
	background: #FFFFFF;
	border-radius: 16px;
	border: 2px solid rgba(9, 28, 48, 0.1);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}

/* =========================================
   Featured Card — spans full width
   ========================================= */
.twoUfi-blog-card--featured {
	grid-column: 1 / -1;
}

@media (min-width: 1024px) {
	.twoUfi-blog-card--featured {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

.twoUfi-blog-card:hover {
	border-color: rgba(9, 28, 48, 0.3);
	text-decoration: none;
	color: inherit;
}

/* =========================================
   Image
   ========================================= */
.twoUfi-blog-card__image {
	height: 192px;
	overflow: hidden;
}

.twoUfi-blog-card__image--featured {
	height: 256px;
}

@media (min-width: 1024px) {
	.twoUfi-blog-card__image--featured {
		height: 100%;
		min-height: 300px;
	}
}

.twoUfi-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.twoUfi-blog-card__placeholder {
	background-color: #80A3FC;
	display: flex;
	align-items: center;
	justify-content: center;
}

.twoUfi-blog-card__placeholder span {
	color: rgba(9, 28, 48, 0.6);
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
}

/* =========================================
   Body
   ========================================= */
.twoUfi-blog-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.twoUfi-blog-card__body--featured {
	padding: 24px;
}

@media (min-width: 1024px) {
	.twoUfi-blog-card__body--featured {
		padding: 40px;
	}
}

/* =========================================
   Meta row (category + read time)
   ========================================= */
.twoUfi-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.twoUfi-blog-card__cat {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 12px;
	border-radius: 9999px;
	line-height: 1.4;
}

.twoUfi-blog-card__time {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: rgba(9, 28, 48, 0.6);
	display: flex;
	align-items: center;
	gap: 4px;
}

/* =========================================
   Title
   ========================================= */
.twoUfi-blog-card__title {
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	font-size: 18px;
	color: #091C30;
	margin: 0 0 12px;
	transition: color 0.2s ease;
	line-height: 1.3;
}

.twoUfi-blog-card:hover .twoUfi-blog-card__title {
	color: #3677D7;
}

.twoUfi-blog-card__title--featured {
	font-size: 24px;
}

@media (min-width: 1024px) {
	.twoUfi-blog-card__title--featured {
		font-size: 30px;
	}
}

/* =========================================
   Excerpt
   ========================================= */
.twoUfi-blog-card__excerpt {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(9, 28, 48, 0.7);
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.twoUfi-blog-card__excerpt--featured {
	font-size: 16px;
	-webkit-line-clamp: unset;
}

@media (min-width: 1024px) {
	.twoUfi-blog-card__excerpt--featured {
		font-size: 18px;
	}
}

/* =========================================
   Footer (date + read link)
   ========================================= */
.twoUfi-blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
}

.twoUfi-blog-card__date {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: rgba(9, 28, 48, 0.6);
}

.twoUfi-blog-card__read-link {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #3677D7;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.2s ease;
}

.twoUfi-blog-card:hover .twoUfi-blog-card__read-link {
	gap: 8px;
}

/* =========================================
   Pagination
   ========================================= */
.twoUfi-blog-pagination {
	margin-top: 64px;
	display: flex;
	justify-content: center;
}

.twoUfi-blog-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.twoUfi-blog-pagination li {
	margin: 0;
}

.twoUfi-blog-pagination a,
.twoUfi-blog-pagination span.current {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	font-size: 16px;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.twoUfi-blog-pagination a {
	border: 2px solid rgba(9, 28, 48, 0.1);
	color: #091C30;
	background: transparent;
}

.twoUfi-blog-pagination a:hover {
	border-color: #091C30;
	text-decoration: none;
	color: #091C30;
}

.twoUfi-blog-pagination span.current {
	background-color: #091C30;
	color: #FFFFFF;
	border: 2px solid #091C30;
}

.twoUfi-blog-pagination .dots {
	width: auto;
	padding: 0 8px;
	border: 0;
	color: rgba(9, 28, 48, 0.4);
	font-weight: 700;
}

.twoUfi-blog-pagination .prev,
.twoUfi-blog-pagination .next {
	color: rgba(9, 28, 48, 0.4);
}

.twoUfi-blog-pagination .prev:hover,
.twoUfi-blog-pagination .next:hover {
	color: #091C30;
	border-color: #091C30;
}

/* =========================================
	Footer Custom Styles
	========================================= */

ul#menu-privacy {
	display: flex;
	justify-content: flex-end;
}
ul#menu-privacy li:first-child {
	padding-right: 18px;
}

footer > div:nth-child(1) .widget_nav_menu ul li {
	padding-bottom: 14px;
}

footer > div:nth-child(2) .ast-builder-footer-grid-columns {
	border-top: 2px solid #2b3849;
	padding-top: 32px;
}

.footer-social-inner-wrap {
	display: flex !important;	
	flex-wrap: nowrap !important;
}

@media (max-width: 1023px) {
  .site-primary-footer-wrap .ast-builder-grid-row-container-inner .ast-builder-grid-columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .site-primary-footer-wrap .ast-footer-copyright,
  .site-primary-footer-wrap ul#menu-privacy {
    width: auto !important;
  }
}

@media (max-width: 780px) {
  .site-primary-footer-wrap .ast-footer-copyright,
  .site-primary-footer-wrap ul#menu-privacy {
    text-align: left !important;
    justify-content: flex-start !important;
  }
}

/* =========================================
   Gravity Forms — Submit Button
   ========================================= */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_page_footer button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border-radius: 9999px !important;
	border: 2px solid #091C30 !important;
	background-color: #091C30 !important;
	color: #FFFFFF !important;
	padding: 16px 36px !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper .gform_page_footer button[type="submit"]:hover {
	opacity: 0.9 !important;
}

.gform_wrapper .gform_footer input[type="submit"]:focus,
.gform_wrapper .gform_page_footer input[type="submit"]:focus,
.gform_wrapper .gform_footer button[type="submit"]:focus,
.gform_wrapper .gform_page_footer button[type="submit"]:focus {
	outline: 2px solid #091C30 !important;
	outline-offset: 2px !important;
}