/* ==========================================================
   Elite Eye Hospitals - FAQ page
   Uses the site's :root variables (with fallbacks, so it also
   works if the variables are not loaded on this page).
   All classes are prefixed with "faq-" to avoid clashing.
   ========================================================== */

.faq-page {
	--faq-primary: var(--primary-color, #212B5C);
	--faq-accent: var(--secondary-color, #ff6f0a);
	--faq-border: var(--border, #D5D0E4);
	--faq-tint: var(--background-light-color, #d7e2f5);
	--faq-white: var(--white-color, #fff);
	--faq-text: #3a4160;
	--faq-sticky-top: 110px; /* change if your header height differs */
}

/* ---------- Hero ---------- */
.faq-hero {
	background: var(--faq-primary);
	color: var(--faq-white);
	padding: 64px 0 72px;
	border-bottom: 5px solid var(--faq-accent);
}
.faq-breadcrumb {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 16px;
	margin-bottom: 22px;
	opacity: .85;
}
.faq-breadcrumb li + li:before {
	content: "/";
	margin-right: 8px;
}
.faq-breadcrumb a {
	color: var(--faq-white);
	text-decoration: none;
}
.faq-breadcrumb a:hover {
	text-decoration: underline;
}
.faq-hero h1 {
	font-size: 54px;
	line-height: 1.1;
	font-weight: 700;
	max-width: 720px;
	margin-bottom: 16px;
}
.faq-hero-intro {
	font-size: 21px;
	line-height: 1.55;
	max-width: 640px;
	opacity: .92;
	margin-bottom: 32px;
}
.faq-search {
	position: relative;
	max-width: 560px;
}
.faq-search svg {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	stroke: var(--faq-primary);
	fill: none;
	stroke-width: 2;
	pointer-events: none;
}
.faq-search input {
	width: 100%;
	height: 58px;
	padding: 0 130px 0 52px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: var(--font-family, "Philosopher", sans-serif);
	font-size: 19px;
	color: var(--faq-primary);
	background: var(--faq-white);
}
.faq-search input::placeholder {
	color: #6b7194;
}
.faq-search input:focus {
	outline: none;
	border-color: var(--faq-accent);
}
.faq-search-count {
	margin-top: 12px;
	font-size: 17px;
	min-height: 24px;
	opacity: .9;
}

/* ---------- Emergency strip ---------- */
.faq-emergency {
	background: var(--faq-accent);
	color: var(--faq-white);
}
.faq-emergency .main-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.faq-emergency p {
	font-size: 19px;
	line-height: 1.4;
}
.faq-emergency strong {
	font-weight: 700;
}
.faq-emergency a {
	color: var(--faq-white);
	font-size: 22px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}
.faq-emergency a:hover {
	text-decoration-thickness: 3px;
}

/* ---------- Layout ---------- */
.faq-body {
	padding: 56px 0 24px;
}
.faq-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

/* ---------- Sidebar ---------- */
.faq-sidebar {
	position: sticky;
	top: var(--faq-sticky-top);
}
.faq-nav h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--faq-primary);
	margin-bottom: 14px;
}
.faq-nav ul {
	list-style: none;
	border-left: 2px solid var(--faq-border);
}
.faq-nav li[hidden] {
	display: none;
}
.faq-nav a {
	display: block;
	padding: 10px 0 10px 18px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 19px;
	line-height: 1.3;
	color: var(--faq-text);
	text-decoration: none;
	transition: color .2s, border-color .2s;
}
.faq-nav a:hover {
	color: var(--faq-primary);
}
.faq-nav a.is-active {
	color: var(--faq-primary);
	font-weight: 700;
	border-left-color: var(--faq-accent);
}

.faq-help {
	margin-top: 36px;
	padding: 24px;
	background: var(--faq-primary);
	color: var(--faq-white);
	border-radius: 6px;
}
.faq-help h3 {
	font-size: 22px;
	margin-bottom: 8px;
}
.faq-help p {
	font-size: 17px;
	line-height: 1.5;
	margin-bottom: 18px;
	opacity: .9;
}

/* ---------- Buttons ---------- */
.faq-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	border: 2px solid var(--faq-accent);
	background: var(--faq-accent);
	color: var(--faq-white);
	font-family: var(--font-family, "Philosopher", sans-serif);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: background .2s, color .2s, border-color .2s;
}
.faq-btn:hover {
	background: var(--faq-white);
	color: var(--faq-accent);
}
.faq-btn.is-outline {
	background: transparent;
	border-color: var(--faq-white);
	color: var(--faq-white);
}
.faq-btn.is-outline:hover {
	background: var(--faq-white);
	color: var(--faq-primary);
}
.faq-help .faq-btn {
	display: block;
	margin-bottom: 10px;
}
.faq-help .faq-btn:last-child {
	margin-bottom: 0;
}

/* ---------- FAQ groups ---------- */
.faq-group {
	scroll-margin-top: var(--faq-sticky-top);
	margin-bottom: 52px;
}
.faq-group[hidden] {
	display: none;
}
.faq-group-title {
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--faq-primary);
	padding-bottom: 14px;
	border-bottom: 3px solid var(--faq-primary);
}

/* ---------- Accordion ---------- */
.faq-item {
	border-bottom: 1px solid var(--faq-border);
	transition: background .25s ease-out;
}
.faq-item[hidden] {
	display: none;
}
.faq-item[open] {
	background:#f3f3f3;
	border-bottom-right-radius: 15px;
	border-bottom-left-radius: 15px;


}
.faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 16px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--faq-primary);
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-item summary:hover {
	color: var(--faq-accent);
}
.faq-item summary:focus-visible {
	outline: 3px solid var(--faq-accent);
	outline-offset: -3px;
}

/* plus / minus icon */
.faq-icon {
	position: relative;
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid currentColor;
}
.faq-icon:before,
.faq-icon:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .25s;
}
.faq-icon:after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-icon {
	color: var(--faq-accent);
}
.faq-item[open] .faq-icon:after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
	padding: 0 68px 26px 16px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--faq-text);
	max-width: 760px;
}
.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
	margin-top: 12px;
}
.faq-answer ul {
	padding-left: 22px;
}
.faq-answer li {
	margin-bottom: 6px;
}
.faq-answer li::marker {
	color: var(--faq-accent);
}
.faq-answer a {
	color: var(--faq-primary);
	font-weight: 700;
}

.faq-empty {
	padding: 48px 0;
	font-size: 22px;
	color: var(--faq-primary);
}
.faq-empty[hidden] {
	display: none;
}
.faq-empty a {
	color: var(--faq-accent);
	font-weight: 700;
}

/* ---------- Closing call-to-action ---------- */
.faq-cta {
	background: var(--faq-tint);
	padding: 56px 0;
	margin-top: 32px;
}
.faq-cta .main-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}
.faq-cta h2 {
	font-size: 36px;
	color: var(--faq-primary);
	margin-bottom: 6px;
}
.faq-cta p {
	font-size: 20px;
	color: var(--faq-text);
}
.faq-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.faq-cta .faq-btn.is-outline {
	border-color: var(--faq-primary);
	color: var(--faq-primary);
}
.faq-cta .faq-btn.is-outline:hover {
	background: var(--faq-primary);
	color: var(--faq-white);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
	.faq-hero {
		padding: 44px 0 52px;
	}
	.faq-hero h1 {
		font-size: 42px;
	}
	.faq-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	/* sidebar becomes a sticky, scrollable strip of links */
	.faq-sidebar {
		position: sticky;
		top: 0;
		z-index: 5;
		margin: 0 -15px;
		padding: 0 15px;
		background: var(--faq-white);
		border-bottom: 1px solid var(--faq-border);
	}
	.faq-nav h2,
	.faq-help {
		display: none;
	}
	.faq-nav ul {
		display: flex;
		gap: 22px;
		overflow-x: auto;
		border-left: 0;
		scrollbar-width: none;
	}
	.faq-nav ul::-webkit-scrollbar {
		display: none;
	}
	.faq-nav a {
		white-space: nowrap;
		padding: 14px 0 12px;
		margin-left: 0;
		border-left: 0;
		border-bottom: 3px solid transparent;
		font-size: 18px;
	}
	.faq-nav a.is-active {
		border-bottom-color: var(--faq-accent);
	}
	.faq-group {
		scroll-margin-top: 70px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
	.faq-hero h1 {
		font-size: 34px;
	}
	.faq-hero-intro {
		font-size: 18px;
	}
	.faq-search input {
		height: 52px;
		font-size: 17px;
	}
	.faq-body {
		padding-top: 32px;
	}
	.faq-group-title {
		font-size: 27px;
	}
	.faq-item summary {
		font-size: 19px;
		padding: 18px 8px;
		gap: 14px;
	}
	.faq-answer {
		padding: 0 8px 22px;
		font-size: 18px;
	}
	.faq-cta h2 {
		font-size: 28px;
	}
	.faq-cta-actions,
	.faq-cta-actions .faq-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq-item,
	.faq-icon:before,
	.faq-icon:after,
	.faq-nav a,
	.faq-btn {
		transition: none;
	}
	html {
		scroll-behavior: auto !important;
	}
}


/* ---------- Search results behaviour ---------- */
.faq-search {
	scroll-margin-top: 90px; /* space for your sticky header; adjust if needed */
}
mark.faq-mark {
	background: #ffd9b8;
	color: inherit;
	padding: 0 2px;
	border-radius: 3px;
}
/* after a search is submitted, tighten the gap under the search box */
.is-searching .faq-body {
	padding-top: 28px;
}
.is-searching .faq-group {
	margin-bottom: 32px;
}

.faq-search-btn {
	position: absolute;
	right: 6px;
	top: 6px;
	bottom: 6px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--faq-accent);
	color: var(--faq-white);
	font-family: var(--font-family, "Philosopher", sans-serif);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}
.faq-search-btn:hover {
	background: var(--faq-primary);
}
.faq-search-btn:focus-visible {
	outline: 3px solid var(--faq-primary);
	outline-offset: 2px;
}
@media (max-width: 575px) {
	.faq-search input {
		padding-right: 104px;
	}
	.faq-search-btn {
		padding: 0 14px;
		font-size: 16px;
	}
}


/* =========================================
   FAQ RESPONSIVE TOPIC TABS + SMOOTH SCROLL
   ========================================= */

.faq-layout,
.faq-content {
    min-width: 0;
}

.faq-sidebar {
    min-width: 0;
}

.faq-group {
    scroll-margin-top: var(--faq-sticky-top, 110px);
}

/* Tablet and mobile navigation */
@media (max-width: 991px) {

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .faq-sidebar {
        position: sticky;
        top: var(--faq-sticky-top, 110px);
        z-index: 20;

        width: auto;
        max-width: none;
        margin: 0 -15px;
        padding: 0 15px;

        background: var(--faq-white, #fff);
        border-bottom: 1px solid var(--faq-border, #ddd);
    }

    .faq-nav {
        width: 100%;
        min-width: 0;
    }

    .faq-nav h2,
    .faq-help {
        display: none;
    }

    .faq-nav ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 20px;

        width: 100%;
        margin: 0;
        padding: 0;

        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;

        border: 0;
        scrollbar-width: none;
    }

    .faq-nav ul::-webkit-scrollbar {
        display: none;
    }

    .faq-nav li {
        flex: 0 0 auto;
        min-width: max-content;
        margin: 0;
    }

    .faq-nav a {
        display: block;
        white-space: nowrap;

        padding: 15px 2px 12px;
        margin: 0;

        border: 0;
        border-bottom: 3px solid transparent;
        font-size: 17px;
        line-height: 1.4;

        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .faq-nav a.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--faq-accent);
    }

    .faq-nav a:focus-visible {
        outline: 2px solid var(--faq-accent);
        outline-offset: -2px;
    }

    /* Keep headings visible below the sticky header and tabs */
    .faq-group {
        scroll-margin-top:
            calc(var(--faq-sticky-top, 110px) + 60px);
    }

    .faq-content {
        width: 100%;
    }
}

/* Smaller mobile screens */
@media (max-width: 575px) {

    .faq-body {
        padding-top: 24px;
    }

    .faq-nav ul {
        gap: 16px;
    }

    .faq-nav a {
        font-size: 15px;
        padding: 13px 1px 11px;
    }

    .faq-group {
        margin-bottom: 32px;
        scroll-margin-top:
            calc(var(--faq-sticky-top, 110px) + 54px);
    }

    .faq-group-title {
        font-size: clamp(23px, 6vw, 27px);
        overflow-wrap: anywhere;
    }

    .faq-item summary {
        font-size: 18px;
        gap: 12px;
    }

    .faq-answer {
        overflow-wrap: anywhere;
    }

    .faq-emergency .main-wrapper {
        align-items: flex-start;
    }

    .faq-emergency p {
        font-size: 16px;
    }

    .faq-emergency a {
        font-size: 18px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .faq-cta-actions {
        width: 100%;
    }

    .faq-cta-actions .faq-btn {
        width: 100%;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .faq-nav ul {
        scroll-behavior: auto;
    }

    .faq-group {
        scroll-behavior: auto;
    }
}


/* faqhero css */
/*==========================================
 FAQ HERO WITH BACKGROUND IMAGE + OVERLAY
==========================================*/

.faq-hero{
    position: relative;
    overflow: hidden;
    background: url("../images/faq-banner.jpeg") center center / cover no-repeat;
    padding: 100px 0;
    color: #fff;
    isolation: isolate;
}


/* Light Dark Overlay */
.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 32, 70, 0.45);
    z-index: -1;
}

/* Very Light Gradient */
.faq-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: -1;
}

.faq-hero .main-wrapper{
    position: relative;
    z-index: 2;
}

.faq-breadcrumb,
.faq-breadcrumb a,
.faq-hero h1,
.faq-hero-intro{
    color:#fff;
}

.faq-breadcrumb{
    opacity:.95;
}

.faq-hero h1{
    font-size:58px;
    margin-bottom:20px;
    max-width:700px;
}

.faq-hero-intro{
    max-width:700px;
    font-size:21px;
    line-height:1.7;
    opacity:.95;
}

.faq-search{
    max-width:600px;
}