/* main.css - FIMBank Design System */

/* ===========================
   Variables & Reset
========================== */
:root {
	--fim-dark-blue: #0b1f42;
	--fim-blue-accent: #1a3b70;
	--fim-text-dark: #0f172a;
	--fim-text-grey: #4a4a4a;
	--fim-light-bg: #f8f9fa;
	--bs-font-sans-serif: "Lateo", sans-serif;
	--btn-border-radius: 4px;
}

body {
	font-family: var(--bs-font-sans-serif);
	color: var(--fim-text-grey);
	overflow-x: hidden; /* Prevent horizontal scroll from full-width sections */
	background-color: #fff;
}

a {
	text-decoration: none;
	transition: all 0.3s ease;
}

/* ===========================
   Blue Intro Section
========================== */
.blue-intro-section {
	background-color: var(--fim-dark-blue);
	color: white;
	padding-top: 80px;
	padding-bottom: 100px; /* Reduced to control overlap better */
	position: relative;
}

.intro-label {
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	opacity: 0.9;
	margin-bottom: 15px;
	display: block;
}

.intro-heading {
	font-size: 2.8rem;
	font-weight: 200;
	margin-bottom: 25px;
	line-height: 1.2;
}

.intro-text {
	font-size: 1.05rem;
	line-height: 1.7;
	opacity: 0.9;
	font-weight: 300;
}

.intro-img-container img {
	width: 100%;
	height: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Overlapping Cards
========================== */
.cards-overlap-section {
    position: relative;
    z-index: 10;
    padding-top: 86px;
    padding-bottom: 86px;
    background-image: url(/assets/img/Image.jpg);
    background-size: cover;
    background-position: center;
    min-height: 500px;
    margin-bottom: 140px;
}

.cards-overlap-container {
    position: relative;
    top: 200px;
}

.cards-set-outer-position {
	position: relative;
	height: 300px;
}

.cards-set-inner-position {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.feature-card {
	background: white;
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}
	border: none;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
	border-radius: 0;
}

.feature-card:hover {
	transform: translateY(-10px);
}

.feature-card .card-img-top {
	height: 220px;
	object-fit: cover;
}

.feature-card .card-body {
	padding: 35px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.feature-card .card-title {
	color: #000;
	font-size: 1.8rem;
	font-weight: 400;
	margin-bottom: 20px;
}

.feature-card .card-text {
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 30px;
	flex-grow: 1;
	line-height: 1.6;
}

.btn-card {
	background-color: var(--fim-dark-blue);
	color: white;
	width: 100%;
	padding: 14px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	border: none;
	border-radius: 4px;
	letter-spacing: 1px;
}

.btn-card:hover {
	background-color: var(--fim-blue-accent);
	color: white;
}

/* ===========================
   Insights & Updates
========================== */
.insights-section {
	padding: 20px 0 100px 0;
}

.section-header {
	margin-bottom: 50px;
	font-size: 2.2rem;
	color: #000;
	font-weight: 400;
}

.insight-list-item {
	background-color: #f8f9fa;
	padding: 25px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 4px solid transparent;
	transition: all 0.3s ease;
}

.insight-list-item:hover {
	border-left: 4px solid var(--fim-dark-blue);
	background-color: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.insight-title {
	font-weight: 400;
	color: #000;
	font-size: 1.1rem;
	margin-bottom: 8px;
	display: block;
}

.insight-desc {
	font-size: 0.9rem;
	color: #666;
	margin: 0;
}

.btn-arrow {
	width: 45px;
	height: 45px;
	min-width: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #0a1f42;
	background: white;
	color: #0a1f42;
	transition: all 0.2s;
	margin-left: 20px;
}

.insight-list-item:hover .btn-arrow {
	background: var(--fim-dark-blue);
	color: white;
	border-color: var(--fim-dark-blue);
}

/* Featured Article Box */
.featured-article-box {
	background-color: #f0f2f5;
	padding: 50px 40px;
	height: 95%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	border: 1px solid #eee;
}

.featured-title {
	font-size: 2rem;
	color: #000;
	margin-bottom: 25px;
	line-height: 1.3;
}

.featured-text {
	font-size: 1rem;
	color: #444;
	margin-bottom: 35px;
	line-height: 1.6;
}

/* ===========================
   Footer
========================== */
.footer {
	background-color: var(--fim-dark-blue);
	color: #fff;
	padding: 60px 0 30px 0;
	font-size: 0.8rem;
}

.footer a {
	color: #fff;
	margin: 0 12px;
	transition: color 0.3s;
}

.footer a:hover {
	color: #e7e7e7;
	text-decoration: underline;
}

.social-icons a {
	font-size: 1.2rem;
	display: inline-block;
}

.footer-divider {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 30px auto;
	width: 100%;
}

.fooer-address {
	font-size: 0.75rem;
	max-width: 800px;
	margin: 0 auto;
}

/* ===========================
   Hero Slider
========================== */
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: none;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.hero-title {
	color: var(--fim-dark-blue);
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: #fff;
	text-align: center;
	font-feature-settings: "liga" off, "clig" off;
	font-style: normal;
	font-weight: 200;
	line-height: normal;
}

.btn-cta-hero {
	background-color: var(--fim-dark-blue);
	color: white;
	padding: 14px 40px;
	/* border-radius: 2px; */
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
}

.btn-cta-hero:hover {
	background-color: var(--fim-blue-accent);
	color: white;
}

/* Hero Dots */
.hero-section {
	position: relative;
	width: 100%;
	height: 54vh;
	min-height: 500px;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.hero-content {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.hero-slide {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.6s ease-in-out;
	pointer-events: none;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	color: white;
}

.hero-slide.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hero-title {
	font-size: 3rem;
	margin-bottom: 1rem;
	font-weight: bold;
}

.hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.btn-cta-hero {
	display: inline-block;
	padding: 1rem 2rem;
	background-color: #0f2b5c;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.btn-cta-hero:hover {
	background-color: #1a3d7a;
}

.hero-indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	align-items: center;
}

.indicator {
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	border: none;
	cursor: pointer;
}

.indicator.active {
	background: var(--fim-dark-blue);
	width: 12px;
	height: 12px;
}

.indicator:hover {
	background-color: var(--fim-dark-blue);
}

/* ===========================
   Responsive (except menu)
========================== */
@media (max-width: 991px) {
	.hero-title {
		font-size: 2.5rem;
	}

	/* CARDS SECTION - TABLET FIX */
	.cards-overlap-section {
		margin-top: 0;
		padding-top: 60px;
		padding-bottom: 60px;
		margin-bottom: 60px;
		min-height: auto;
		background-position: center;
	}
	
	.cards-overlap-container {
		position: static !important;
		top: 0 !important;
	}

	.blue-intro-section {
		padding-bottom: 60px;
	}

	.featured-article-box {
		margin-top: 30px;
	}
	
	.cards-set-outer-position {
		position: unset;
		height: auto;
	}

	.cards-set-inner-position {
		position: unset;
	}
	
	.feature-card {
		margin-bottom: 30px;
	}
}

/* ===========================
   MOBILE BREAKPOINT (768px and below)
========================== */
@media (max-width: 768px) {
	.cards-overlap-section {
		padding-top: 40px;
		padding-bottom: 40px;
		margin-bottom: 40px;
		background-image: none;
		background-color: #f8f9fa;
		min-height: auto;
	}
	
	.cards-overlap-container {
		position: static !important;
		top: 0 !important;
	}
	
	.blue-intro-section {
		padding-bottom: 40px;
	}
	
	.feature-card {
		margin-bottom: 20px;
	}
	
	.feature-card .card-body {
		padding: 25px;
	}
}

/* ===========================
   SMALL MOBILE (576px and below)
========================== */
@media (max-width: 576px) {
	.cards-overlap-section {
		padding-top: 30px;
		padding-bottom: 30px;
		margin-bottom: 30px;
	}
	
	.feature-card .card-body {
		padding: 20px;
	}
	
	.card-title {
		font-size: 1.5rem;
	}
	
	.card-text {
		font-size: 0.95rem;
	}
}

/* ===========================
  Cookie Policy Banner
========================== */
.cookie-policy-container {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
	padding: 0;
	font-family: "Lato", sans-serif !important;
}
.cookie-policy-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px 16px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.cookie-policy-text {
	color: #132852;
	font-size: 16px;
	margin-bottom: 8px;
	text-align: center;
	border-color: #132852;
}
.cookie-btn {
	background-color: #132852;
	border-color: #132852;
}

.cookie-btn:hover,
.cookie-btn:focus,
.cookie-btn::selection,
.cookie-btn::focus {
	background-color: #1a3d7a !important;
	border-color: #1a3d7a !important;
	color: white;
}

.cookie-policy-links {
	margin-bottom: 12px;
	font-size: 14px;
	color: #132852;
	text-align: center;
}
.cookie-link {
	color: #132852;
	text-decoration: underline;
	margin: 0 4px;
}
.cookie-link:hover,
.cookie-link:focus {
	color: #0d1a3a;
	text-decoration: underline;
}
.divider {
	color: #b0b0b0;
	margin: 0 4px;
}
.cookie-footer {
	display: flex;
	gap: 10px;
	justify-content: center;
}
@media (max-width: 600px) {
	.cookie-policy-inner {
		padding: 16px 8px 8px 8px;
	}
	.cookie-footer {
		flex-direction: column;
		gap: 8px;
		width: 100%;
	}
}

/* ===========================
   Navbar Styles
========================== */
.navbar-default {
	background-color: #f9f9f9;
	border: none;
	border-radius: 0;
	margin-bottom: 0;
}

.navbar-container {
	background-color: #f9f9f9;
}

.navbar-brand {
	height: auto;
	max-width: 190px;
}

a.navbar-brand {
	padding: 0 20px;
}

a.navbar-brand img {
	width: 100%;
}

.navbar-nav {
	float: right;
	margin-top: 4px;
	margin-bottom: 4px;
}

.navbar-nav > li {
	float: left;
}

.navbar-nav > li > a {
	color: #454545;
	font-weight: 500;
	margin: 0 16px;
	transition: background 0.3s, color 0.3s;
	padding: 10px 16px;
}

.navbar-nav > li > a:hover,
.btn-primary:hover {
	color: #fff !important;
	background-color: #0b1c3c !important;
}

.navbar-default .navbar-toggle .icon-bar {
	background-color: #0f172a;
}

/* ===========================
   Mega Menu Styles
========================== */
.menu-large {
	position: static !important;
}

.megamenu {
	width: 100%;
	padding: 30px;
	background: #fff;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-left: 0;
	margin-right: 0;
}

.megamenu > li {
	margin-bottom: 30px;
}

.megamenu > li:last-child {
	margin-bottom: 0;
}

.megamenu > li > ul {
	margin: 0;
	padding: 0;
}

.megamenu > li > ul > li {
	list-style: none;
}

.megamenu > li > ul > li:first-child {
	margin-bottom: 16px;
	color: #132852;
	font-size: 13px;
}

.megamenu > li > ul > li > a {
	display: block;
	clear: both;
	font-weight: 400;
	line-height: 1.428571429;
	color: #333;
	white-space: normal;
	padding: 3px 0;
	transition: background 0.3s, color 0.3s;
}

.megamenu > li ul > li > a:hover,
.megamenu > li ul > li > a:focus {
	text-decoration: none;
	color: #0b1c3c;
	background-color: transparent;
}

.dropdown-menu.megamenu h4.menu-heading {
	font-weight: 700;
	font-size: 16px;
	margin-top: 0;
	margin-bottom: 10px;
}

.dropdown-menu.megamenu ul li a {
	display: block;
	padding-left: 0;
	margin-bottom: 4px;
	font-weight: 400;
	transition: color 0.2s ease;
}

.dropdown-menu.megamenu ul li a:hover {
	color: #1a2e53;
	text-decoration: underline;
}

/* ===========================
   Menu Button
========================== */
a.btn.btn-menu {
	background: #132852;
	display: inline-flex;
	padding: 10px 16px;
	justify-content: center;
	align-items: center;
	color: #fff !important;
	border-radius: 0;
}

/* ===========================
   Responsive Breakpoints
========================== */
@media (max-width: 820px) {
	.navbar-nav > li > a {
		font-size: 10px;
		margin: 0 10px;
	}
}

@media (max-width: 767px) {
	html,
	body {
		overflow-x: hidden;
	}

	.navbar-toggle {
		border: none;
		background: transparent;
	}
	.navbar-toggle .icon-bar {
		width: 24px;
		height: 3px;
		margin: 4px 0;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}

	.navbar-toggle .icon-open {
		display: inline;
	}
	.navbar-toggle .icon-close {
		display: none;
		font-size: 24px;
		line-height: 1;
	}
	.navbar-toggle.open .icon-open {
		display: none;
	}
	.navbar-toggle.open .icon-close {
		display: inline;
	}

	.navbar-toggle:not(.collapsed) .icon-bar:nth-of-type(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.navbar-toggle:not(.collapsed) .icon-bar:nth-of-type(2) {
		opacity: 0;
	}
	.navbar-toggle:not(.collapsed) .icon-bar:nth-of-type(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.navbar-collapse {
		position: fixed;
		top: 50px;
		left: 0;
		width: 100%;
		height: calc(100vh - 50px);
		background: #fff;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-10%);
		transition: opacity 0.3s ease, transform 0.3s ease;
		z-index: 999;
		display: block !important;
	}
	.navbar-collapse.in {
		visibility: visible !important;
		opacity: 1 !important;
		transform: translateY(0) !important;
	}

	#mobile-menu {
		position: fixed;
		top: var(--nav-height, 60px);
		left: 0;
		right: 0;
		bottom: 0;
		background: #fff;
		visibility: hidden;
		transform: translateY(-100%);
		transition: transform 0.25s ease-out, visibility 0.25s ease-out;
		overflow-y: auto;
		z-index: 999;
	}
	#mobile-menu.open {
		visibility: visible;
		transform: translateY(0);
	}

	#mobile-menu .megamenu.row {
		display: flex !important;
		flex-direction: column;
		padding: 0;
		margin: 0;
	}
	#mobile-menu .megamenu.row > li {
		width: 100%;
		padding: 0 20px;
		margin: 0;
		border-bottom: 1px solid #e1e1e1;
	}
	#mobile-menu .megamenu.row > li:last-child {
		border-bottom: none;
	}

	#mobile-menu .navbar-nav,
	#mobile-menu .nav {
		display: flex !important;
		flex-direction: column;
		padding: 0;
		margin: 0;
		list-style: none;
	}
	#mobile-menu .nav > li {
		width: 100%;
		border-bottom: 1px solid #e1e1e1;
	}
	#mobile-menu .nav > li > a {
		display: block;
		padding: 12px 20px;
		font-size: 1rem;
		color: #454545;
		text-decoration: none;
		position: relative;
	}
	#mobile-menu .nav > li > a .caret {
		float: right;
		margin-top: 6px;
	}
	#mobile-menu .nav > li.dropdown.open > a .caret {
		transform: rotate(90deg);
	}

	#mobile-menu .dropdown-menu.megamenu,
	#mobile-menu .dropdown-menu {
		display: none;
		flex-direction: column;
		padding-left: 16px;
		margin: 0;
		background: #f9f9f9;
	}
	#mobile-menu li.dropdown.open > .dropdown-menu.megamenu,
	#mobile-menu li.open > .dropdown-menu {
		display: flex !important;
		max-height: 60vh;
		overflow-y: scroll;
		overflow-x: hidden;
	}
	#mobile-menu .dropdown-menu.megamenu li > a {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #f1f1f1;
		font-size: 0.95rem;
		color: #333;
		text-decoration: none;
	}
	#mobile-menu .dropdown-menu li > a {
		padding: 14px 40px;
		font-size: 0.95rem;
		color: #555;
		text-decoration: none;
	}
	#mobile-menu .dropdown-menu.megamenu li:last-child > a,
	#mobile-menu .dropdown-menu li:last-child > a {
		border-bottom: none;
	}
	#mobile-menu .dropdown-menu li > a:hover {
		background: rgba(26, 46, 83, 0.05);
	}

	#mobile-menu > ul {
		background: #fff;
		width: 80%;
		max-width: 300px;
		padding: 20px 0;
		margin: 0;
		list-style: none;
		overflow-y: auto;
	}

	#mobile-menu > ul > li > a {
		display: block;
		padding: 16px 24px;
		font-size: 1.1rem;
		font-weight: 500;
		color: #1a2e53;
		text-decoration: none;
		position: relative;
	}
	#mobile-menu > ul > li.dropdown > a::after {
		content: "▸";
		position: absolute;
		right: 24px;
		transition: transform 0.2s ease;
	}
	#mobile-menu > ul > li.dropdown.open > a::after {
		transform: rotate(90deg);
	}

	#mobile-toggle {
		position: relative;
		z-index: 1101;
	}
}

/* Menu fixes in Chrome */

/* To hide the burger menu on desktop */
#mobile-toggle {
	display: none !important; /* Using !important to ensure override */
}

/* To arrange the main menu items horizontally */
#mobile-menu > ul.nav.navbar-nav {
	flex-direction: row !important; /* Using !important to ensure override */
}

/* Ensure the navbar header containing the logo is visible */
.navbar-header.ai-style-change-57 {
	display: block !important; /* Using !important to ensure override */
}