/*
Theme Name: Edulinx Elementor
Theme URI: https://edulinxlearning.com/
Author: Edulinx Learning
Description: Edulinx Learning website theme for Elementor & Elementor Pro. Activate it with Elementor and the complete website is built automatically: on edulinxlearning.com the Welcome page (choose Bahrain or Pakistan chapter) plus the Bahrain Chapter pages; on pakistan.edulinxlearning.com the Pakistan Chapter pages. Responsive header with dropdown and mobile menu, footer, global colours and fonts. All page content is editable in Elementor; header and footer details are editable in Appearance → Customize → Edulinx Theme.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edulinx
Tags: elementor, full-width-template, custom-logo, custom-menu, education
*/

:root {
	--edx-primary: #0E7C5A;
	--edx-secondary: #0B3D2E;
	--edx-accent: #F59E0B;
	--edx-text: #4A5B55;
	--edx-light: #F1F8F5;
	--edx-dark: #072219;
	--edx-border: #DCEBE4;
	--edx-header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.edx-no-scroll { overflow: hidden; }
body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--edx-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--edx-primary); }
a:hover { color: var(--edx-accent); }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", "Inter", sans-serif; color: var(--edx-secondary); line-height: 1.25; }
svg { fill: currentColor; }

/* Anchor targets stay visible below the sticky header */
[id] { scroll-margin-top: 100px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100000;
	background: #fff; padding: 10px 16px; border-radius: 6px; color: var(--edx-secondary);
}

.edx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* =========================================================================
   Header
   ====================================================================== */
.edx-header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .3s; }
.admin-bar .edx-header { top: 32px; }
.edx-header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(7, 34, 25, .35); }

/* Top bar */
.edx-topbar { background: var(--edx-secondary); color: #fff; font-size: 13px; line-height: 1.4; }
.edx-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.edx-topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.edx-topbar a, .edx-topbar__chapter { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.edx-topbar a:hover { color: var(--edx-accent); }
.edx-topbar svg { width: 14px; height: 14px; fill: var(--edx-accent); flex: none; }
.edx-topbar__chapter { opacity: .85; }

/* Main bar */
.edx-mainbar { border-bottom: 1px solid var(--edx-border); background: #fff; }
.edx-mainbar__inner { display: flex; align-items: center; gap: 24px; min-height: var(--edx-header-h); }
.edx-mainbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Logo */
.edx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--edx-secondary); flex: none; }
.edx-logo:hover { color: var(--edx-secondary); }
.edx-logo__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--edx-primary); display: grid; place-items: center; flex: none; }
.edx-logo__icon svg { width: 24px; height: 24px; fill: #fff; }
.edx-logo__text { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 21px; line-height: .95; letter-spacing: .5px; }
.edx-logo__text small { display: block; font-size: 9.5px; letter-spacing: 3.2px; font-weight: 600; margin-top: 4px; }
.edx-logo__img { display: block; max-height: 54px; width: auto; }

/* Desktop navigation */
.edx-nav { margin-left: auto; }
.edx-nav .edx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.edx-nav .edx-menu > li { position: relative; }
.edx-nav .edx-menu > li > a {
	display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 8px;
	color: var(--edx-secondary); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
	transition: color .2s, background .2s;
}
.edx-nav .edx-menu > li > a:hover,
.edx-nav .edx-menu > li:focus-within > a { color: var(--edx-primary); background: var(--edx-light); }
.edx-nav .edx-menu > .current-menu-item > a,
.edx-nav .edx-menu > .current-menu-ancestor > a,
.edx-nav .edx-menu > .current_page_item > a { color: var(--edx-primary); box-shadow: inset 0 -3px 0 var(--edx-accent); border-radius: 8px 8px 0 0; }
.edx-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.edx-nav .edx-sub-toggle { display: none; }
.edx-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
	background: #fff; border: 1px solid var(--edx-border); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(7, 34, 25, .35);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 20;
}
.edx-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.edx-nav li:hover > .sub-menu,
.edx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.edx-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--edx-secondary); font-weight: 500; font-size: 15px; text-decoration: none; }
.edx-nav .sub-menu a:hover { background: var(--edx-light); color: var(--edx-primary); }
.edx-nav .sub-menu .sub-menu { top: -10px; left: 100%; }

/* Buttons */
.edx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 50px;
	background: var(--edx-primary); color: #fff !important; font-weight: 600; font-size: 14px; line-height: 1.2;
	text-decoration: none; transition: background .3s, transform .3s; white-space: nowrap;
}
.edx-btn svg { width: 16px; height: 16px; fill: currentColor; }
.edx-btn:hover { background: var(--edx-secondary); }
.edx-btn--block { display: flex; width: 100%; }

/* Burger */
.edx-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--edx-light); cursor: pointer; padding: 0; color: var(--edx-secondary); }
.edx-burger__lines { display: grid; gap: 5px; width: 22px; margin: 0 auto; }
.edx-burger__lines span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.edx-burger:hover { background: var(--edx-border); }

/* Drawer (tablet + mobile) */
.edx-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.edx-drawer.is-open { visibility: visible; pointer-events: auto; }
.edx-drawer__overlay { position: absolute; inset: 0; background: rgba(7, 34, 25, .55); opacity: 0; transition: opacity .3s; }
.edx-drawer.is-open .edx-drawer__overlay { opacity: 1; }
.edx-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff;
	display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.edx-drawer.is-open .edx-drawer__panel { transform: translateX(0); }
.admin-bar .edx-drawer__panel { top: 46px; }
.edx-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--edx-border); }
.edx-drawer__close { width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--edx-light); color: var(--edx-secondary); font-size: 28px; line-height: 1; cursor: pointer; }
.edx-drawer__nav { padding: 10px 12px; }
.edx-drawer__nav .edx-menu, .edx-drawer__nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.edx-drawer__nav li { position: relative; }
.edx-drawer__nav .edx-menu > li { border-bottom: 1px solid var(--edx-border); }
.edx-drawer__nav a { display: block; padding: 14px 52px 14px 10px; color: var(--edx-secondary); font-weight: 600; font-size: 16px; text-decoration: none; }
.edx-drawer__nav .current-menu-item > a, .edx-drawer__nav .current_page_item > a { color: var(--edx-primary); }
.edx-drawer__nav .sub-menu { display: none; padding: 0 0 10px 12px; }
.edx-drawer__nav li.is-open > .sub-menu { display: block; }
.edx-drawer__nav .sub-menu a { padding: 10px 10px; font-weight: 500; font-size: 15px; color: var(--edx-text); }
.edx-drawer__nav .edx-sub-toggle {
	position: absolute; right: 4px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--edx-light); cursor: pointer;
	display: grid; place-items: center; color: var(--edx-secondary);
}
.edx-drawer__nav .edx-sub-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.edx-drawer__nav li.is-open > .edx-sub-toggle span { transform: rotate(225deg) translateY(-2px); }
.edx-drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; background: var(--edx-light); }
.edx-drawer__link { display: flex; align-items: center; gap: 10px; color: var(--edx-secondary); text-decoration: none; font-size: 15px; word-break: break-word; }
.edx-drawer__link svg { width: 16px; height: 16px; fill: var(--edx-primary); flex: none; }

/* Laptop: tighten menu */
@media (max-width: 1240px) {
	.edx-nav .edx-menu > li > a { padding: 10px 9px; font-size: 14.5px; }
	.edx-mainbar__inner { gap: 16px; }
}

/* Tablet & mobile: burger + drawer */
@media (max-width: 1024px) {
	:root { --edx-header-h: 70px; }
	.edx-nav { display: none; }
	.edx-burger { display: block; }
}
@media (max-width: 767px) {
	:root { --edx-header-h: 64px; }
	.edx-topbar { display: none; }
	.edx-btn--header { display: none; }
	.edx-logo__icon { width: 40px; height: 40px; }
	.edx-logo__text { font-size: 19px; }
	.admin-bar .edx-header { top: 0; }
}
@media (max-width: 782px) {
	.admin-bar .edx-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .edx-header { top: 0; }
}

/* =========================================================================
   Footer
   ====================================================================== */
.edx-footer { background: var(--edx-dark); color: #B9CEC6; padding: 72px 0 0; font-size: 15px; }
.edx-footer a { color: #B9CEC6; text-decoration: none; }
.edx-footer a:hover { color: var(--edx-accent); }
.edx-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.edx-footer .edx-logo, .edx-footer .edx-logo:hover { color: #fff; }
.edx-footer__about p { margin: 18px 0 20px; }
.edx-footer__title { color: #fff; font-size: 18px; margin: 6px 0 18px; }
.edx-footer__links, .edx-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.edx-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.edx-footer__links a::before { content: ""; width: 6px; height: 6px; border-top: 2px solid var(--edx-accent); border-right: 2px solid var(--edx-accent); transform: rotate(45deg); }
.edx-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.edx-footer__contact svg { width: 16px; height: 16px; fill: var(--edx-accent); flex: none; margin-top: 4px; }
.edx-social { display: flex; flex-wrap: wrap; gap: 10px; }
.edx-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--edx-primary); color: #fff; transition: background .3s; }
.edx-social a:hover { background: var(--edx-accent); color: var(--edx-secondary); }
.edx-social svg { width: 16px; height: 16px; fill: currentColor; }
.edx-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 56px; padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1024px) { .edx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
	.edx-footer { padding-top: 56px; }
	.edx-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.edx-footer__bottom { justify-content: center; text-align: center; }
}

/* =========================================================================
   Basic content (blog / pages not built with Elementor)
   ====================================================================== */
.edx-content { padding: 70px 0; }
.edx-content .entry-title { font-size: clamp(28px, 4vw, 44px); margin: 0 0 20px; }
.edx-post-card { padding: 28px 0; border-bottom: 1px solid var(--edx-border); }
.edx-post-card h2 { margin: 0 0 8px; font-size: 24px; }
.edx-post-card h2 a { color: var(--edx-secondary); text-decoration: none; }

/* =========================================================================
   Enquiry form shortcode [edulinx_enquiry_form] (used when Elementor Pro is not active)
   ====================================================================== */
.edx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edx-form .edx-field { display: flex; flex-direction: column; gap: 6px; }
.edx-form .edx-field--full { grid-column: 1 / -1; }
.edx-form label { font-weight: 600; font-size: 14px; color: var(--edx-secondary); }
.edx-form input, .edx-form select, .edx-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--edx-border); border-radius: 10px; font: inherit; font-size: 15px; color: var(--edx-secondary); background: #fff; }
.edx-form input:focus, .edx-form select:focus, .edx-form textarea:focus { outline: 2px solid var(--edx-primary); outline-offset: 0; border-color: var(--edx-primary); }
.edx-form button { grid-column: 1 / -1; border: 0; cursor: pointer; padding: 15px 24px; border-radius: 50px; background: var(--edx-primary); color: #fff; font: inherit; font-weight: 600; font-size: 15px; transition: background .3s; }
.edx-form button:hover { background: var(--edx-secondary); }
.edx-form .edx-hp { position: absolute; left: -9999px; }
.edx-form-msg { grid-column: 1 / -1; padding: 12px 16px; border-radius: 10px; background: var(--edx-light); color: var(--edx-secondary); font-weight: 600; }
.edx-form-msg--error { background: #FDECEC; color: #9B1C1C; }
@media (max-width: 767px) { .edx-form { grid-template-columns: 1fr; } }

/* =========================================================================
   Elementor helpers
   ====================================================================== */
.elementor-widget-heading .elementor-heading-title span { display: inline; }
.elementor-widget-icon-box .elementor-icon-box-title a { color: inherit; }
.elementor-widget-image img { display: block; }
