/* ══════════════════════════════════════════
   Financial Aid & Student Support Page
   – Services Cards Section (Section 2)
   ══════════════════════════════════════════ */

.gandhi-fa-services {
	padding: 80px 0;
	background: #fff;
}

.gandhi-fa-services-inner {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 30px;
}

.gandhi-fa-services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 80px;
	row-gap: 100px;
	padding-top: 52px; /* room for icon overflow above each card */
}

/* Center a lone last card in a 2-column grid */
.gandhi-fa-services-grid .gandhi-fa-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	max-width: calc(50% - 40px);
	margin: 0 auto;
}

/* ── Card ── */
.gandhi-fa-card {
	background: #F9F9F9;
	border: none;
	border-radius: 8px;
	padding: 35px 30px;
	padding-top: 30px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.gandhi-fa-card:hover {
	background: #01559E;
	box-shadow: 0 12px 35px rgba(1, 85, 158, 0.25);
	transform: translateY(-6px);
}

.gandhi-fa-card:hover .gandhi-fa-card-heading {
	color: #ffffff;
}

.gandhi-fa-card:hover .gandhi-fa-card-intro,
.gandhi-fa-card:hover .gandhi-fa-card-closing {
	color: rgba(255, 255, 255, 0.9);
}

.gandhi-fa-card:hover .gandhi-fa-card-list li {
	color: rgba(255, 255, 255, 0.9);
}

.gandhi-fa-card:hover .gandhi-fa-card-arrow {
	color: #ffffff;
}

/* ── Card Icon ── */
.gandhi-fa-card-icon-wrap {
	width: 64px;
	height: 64px;
	background: #01559E;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: absolute;
	top: -51px;
	left: 30px;
	transition: background 0.3s ease, transform 0.3s ease;
}

.gandhi-fa-card:hover .gandhi-fa-card-icon-wrap {
	background: #F57D26;
	transform: scale(1.1);
}

.gandhi-fa-card-icon-wrap img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.gandhi-fa-card-icon-wrap--fa {
	color: #fff;
	font-size: 26px;
}

/* ── Card Heading ── */
.gandhi-fa-card-heading {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 14px;
	line-height: 1.3;
}

/* ── Card Intro ── */
.gandhi-fa-card-intro {
	font-size: 14px;
	color: #444;
	line-height: 1.7;
	margin: 0 0 14px;
}

/* ── Card List ── */
.gandhi-fa-card-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gandhi-fa-card-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: #333;
	line-height: 1.5;
}

.gandhi-fa-card-arrow {
	color: #1a1a1a;
	font-size: 8px;
	margin-top: 4px;
	flex-shrink: 0;
}

/* ── Card Closing ── */
.gandhi-fa-card-closing {
	font-size: 14px;
	color: #444;
	line-height: 1.7;
	margin: 0;
	margin-top: auto;
	padding-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.gandhi-fa-services-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gandhi-fa-services {
		padding: 50px 0;
	}

	.gandhi-fa-services-inner {
		padding: 0 20px;
	}

	.gandhi-fa-card {
		padding: 25px 20px;
	}
}

/* ══════════════════════════════════════════
   Generic Cards Mobile Slider
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .gcards-track .gandhi-fa-card,
    .gcards-track .gandhi-fa-card * {
        text-align: left !important;
    }

    .gcards-track .gandhi-fa-card-icon-wrap {
        margin-left: 0;
    }

    /* ── Remove hover effects on slider cards (mobile) ── */
    .gcards-track .gandhi-fa-card:hover {
        background: #ffffff;
        box-shadow: none;
        transform: none;
    }
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-heading,
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-intro,
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-closing,
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-list li,
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-arrow {
        color: inherit;
    }
    .gcards-track .gandhi-fa-card:hover .gandhi-fa-card-icon-wrap {
        background: #01559E;
        transform: none;
    }

    .gcards-slider {
        width: 100%;
        overflow: visible;
        position: relative;
        padding-bottom: 40px;
    }

    .gcards-clip {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Move icon from absolute above-card to normal flow inside card */
    .gcards-track .gandhi-fa-card {
        padding-top: 20px;
    }

    .gcards-track .gandhi-fa-card-icon-wrap {
        position: static;
        margin-bottom: 16px;
    }

    .gcards-track {
        display: flex;
        flex-wrap: nowrap;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .gcards-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
    }

    .gcards-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: background 0.2s;
        display: inline-block;
    }

    .gcards-dot.active {
        background: #01559E;
    }
}
