/* Home page — app-style mobile layout (2026-10-13). Loaded only by index.php.
   Phones only (max-width 767.98px). The hero/banner blocks (.rh-*, .rf-*, .ef-*, .home-slider)
   are intentionally NOT styled here — they are managed separately. */
@media (max-width: 767.98px) {
	:root {
		--ha-ink: #0b2a5b;
		--ha-text: #44506a;
		--ha-muted: #6b7690;
		--ha-blue: #0d6efd;
		--ha-sky: #00a8e8;
		--ha-bg: #f2f5fb;
		--ha-card: #ffffff;
		--ha-line: #e3e9f4;
		--ha-radius: 18px;
		--ha-shadow: 0 6px 20px rgba(11, 42, 91, .08);
	}

	/* clip (not hidden): stops sideways page scroll without breaking the sticky header */
	html, body { overflow-x: clip !important; }
	body { background: var(--ha-bg); -webkit-tap-highlight-color: transparent; }
	body .container { padding-left: 16px; padding-right: 16px; }

	/* ---------- top bar: quick links as compact chips (wrap, no sideways scroll) ---------- */
	.top-bar { padding: 8px 0 !important; }
	.top-bar .row { margin: 0; flex-direction: column; }
	.top-bar .row > [class*="col-"] { padding: 0; width: 100%; }
	.top-bar .left-link ul {
		display: flex !important; flex-wrap: wrap !important; justify-content: center !important;
		gap: 6px; margin: 0; padding: 0 !important;
	}
	.top-bar .left-link li { flex: 0 0 auto; margin: 0 !important; list-style: none; }
	.top-bar .left-link li a { padding: 5px 10px !important; font-size: 12px !important; border-radius: 999px !important; white-space: nowrap; }
	.top-bar .left-link li a img { width: 11px; height: 11px; }
	.top-bar .marquee-wrapper { margin-top: 6px; overflow: hidden; }

	/* ---------- header: compact app bar that stays on top ---------- */
	.header-sticky { position: sticky !important; top: 0; z-index: 1030; box-shadow: 0 4px 14px rgba(5, 40, 102, .18); }
	.header-sticky .logo-section { padding-top: 6px !important; padding-bottom: 6px !important; }
	.header-sticky .logo-section img { height: 34px !important; width: auto; }
	.nav-bar { padding: 4px 0 !important; }
	.nav-bar .mobile-header-row { min-height: 46px; align-items: center; padding: 4px 0 !important; }
	.nav-bar .mobile-btn, .nav-bar .menu-toggle { border-radius: 12px; min-height: 40px; }

	/* ---------- mobile menu: full-width list, scrolls inside the header ---------- */
	.nav-bar ul.nav.active {
		max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain;
		flex-wrap: nowrap; padding: 4px 0 10px !important; margin: 0 !important; border-top: 1px solid rgba(255, 255, 255, .18);
		background: transparent !important;
	}
	.nav-bar ul.nav > .nav-item { width: 100%; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav-bar ul.nav > .nav-item:last-child { border-bottom: 0; }
	.nav-bar ul.nav > .nav-item > .nav-link {
		display: flex !important; justify-content: space-between; align-items: center;
		padding: 13px 4px !important; margin: 0 !important; font-size: 16px !important; color: #fff !important; background: none !important;
	}
	.nav-bar ul.nav > .nav-item > .dropdown-toggle::after { transition: transform .2s; }
	.nav-bar ul.nav > .nav-item > .dropdown-toggle.show::after { transform: rotate(180deg); }
	.nav-bar ul.nav .dropdown-menu {
		position: static !important; transform: none !important; float: none; width: auto; min-width: 0 !important;
		margin: 0 0 10px !important; padding: 4px 0 !important; border: 0 !important; border-radius: 12px !important;
		background: rgba(255, 255, 255, .1) !important; box-shadow: none !important;
	}
	.nav-bar ul.nav .dropdown-menu .dropdown-item { color: #eaf2ff !important; padding: 10px 14px !important; font-size: 15px; white-space: normal; background: none !important; }
	.nav-bar ul.nav .dropdown-menu .dropdown-item:active, .nav-bar ul.nav .dropdown-menu .dropdown-item:hover { background: rgba(255, 255, 255, .12) !important; }
	/* RATA Info Hub mega menu */
	.nav-bar ul.nav .dropdown-menu.mega .mega-menu-row { margin: 0 !important; padding: 6px 14px !important; }
	.nav-bar ul.nav .dropdown-menu.mega .mega-col { width: 100%; padding: 8px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .1) !important; }
	.nav-bar ul.nav .dropdown-menu.mega .mega-col:last-child { border-bottom: 0 !important; }
	.nav-bar ul.nav .dropdown-menu.mega .mega-col p, .nav-bar ul.nav .dropdown-menu.mega .mega-col p a { color: #fff !important; font-size: 15px; margin-bottom: 4px !important; }
	.nav-bar ul.nav .dropdown-menu.mega .sub-link, .nav-bar ul.nav .dropdown-menu.mega li a { color: #cfe0ff !important; font-size: 14px; display: block; padding: 5px 0; }

	/* floating social buttons: smaller so they don't cover content; hidden while the menu is open */
	.floating-social { transform: scale(.78); transform-origin: right center; opacity: .92; }
	body.ha-menu-open .floating-social { display: none !important; }

	/* Back to Top: small round button */
	#backToTop.arrow-up {
		width: 46px !important; height: 46px !important; padding: 0 !important; border-radius: 50% !important;
		font-size: 0 !important; display: flex; align-items: center; justify-content: center; right: 14px !important; bottom: 18px !important;
	}
	#backToTop.arrow-up span { font-size: 20px !important; line-height: 1; margin: 0 !important; }

	/* ---------- shared section look ---------- */
	.sectionnn, .glance-wrapper, .footer-about, .history-section, .forums-section { padding-top: 28px !important; padding-bottom: 28px !important; }
	.professional-section h2, .glance-wrapper h2, .history-title, .forums-section .section-intro h2,
	.footer-about .section-intro h2, .Affiliation-section h2 {
		font-size: 22px !important; line-height: 1.25 !important; margin-bottom: 12px !important;
	}

	/* ---------- President's message ---------- */
	.professional-section .row.g-5 { --bs-gutter-y: 16px; --bs-gutter-x: 0; }
	.president-card { border-radius: var(--ha-radius) !important; overflow: hidden; box-shadow: var(--ha-shadow) !important; background: var(--ha-card); }
	.president-card .president-image { padding: 20px 0 !important; border-radius: 0 !important; text-align: center; }
	.president-card .president-image img { width: 132px !important; height: 132px !important; object-fit: cover; border-radius: 50% !important; border: 4px solid #fff !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
	.president-card .president-content { padding: 18px 18px 6px !important; }
	.president-card .president-content .section-title { font-size: 22px !important; }
	.president-card .president-content p { font-size: 15px !important; line-height: 1.6 !important; color: var(--ha-text); }
	.president-card .president-content .text-end { text-align: center !important; margin-top: 12px !important; }
	.president-card .president-content .ask-rata { width: 100%; padding: 12px 18px !important; border-radius: 14px !important; font-size: 15px !important; }

	/* Key focus areas: list of small cards */
	.industry-stats { margin: 14px 12px 14px !important; padding: 18px 14px !important; border-radius: var(--ha-radius) !important; }
	.industry-stats h4 { font-size: 19px !important; margin-bottom: 12px !important; }
	.industry-stats ul { padding: 0 !important; margin: 0 !important; }
	.industry-stats li {
		background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px 10px 34px !important;
		margin-bottom: 8px !important; font-size: 14px !important; line-height: 1.5 !important; position: relative;
	}
	.industry-stats li::before { left: 12px !important; top: 10px !important; }

	/* Exhibition partners: 2-column logo tiles */
	.partners-card { border-radius: var(--ha-radius) !important; padding: 18px 14px !important; box-shadow: var(--ha-shadow); }
	.partners-card .partners-title { font-size: 19px !important; }
	.partners-card .logos-container { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
	.partners-card .logo-item { margin: 0 !important; padding: 8px !important; min-height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 12px !important; }
	.partners-card .logo-item img { max-height: 56px !important; max-width: 100% !important; width: auto !important; object-fit: contain; }

	/* Affiliations */
	.Affiliation-section { border-radius: var(--ha-radius) !important; padding: 16px 0 !important; box-shadow: var(--ha-shadow); overflow: hidden; }
	.Affiliation-section h2 { text-align: center; }
	.Affiliation-section .logos { padding: 4px 0; }
	.Affiliation-section .logos-track img { height: 64px !important; max-height: 64px !important; width: auto !important; }

	/* ---------- RATA at a Glance: cards one below the other ---------- */
	.glance-wrapper .glance-section > p { font-size: 15px !important; line-height: 1.6 !important; }
	.glance-wrapper .glance-section > .row { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px; margin: 0; padding: 4px 0 0; }
	.glance-wrapper .glance-section > .row > [class*="col-"] { flex: 0 0 auto; width: 100%; max-width: 100%; padding: 0; }
	.glance-wrapper .glance-card { height: auto !important; margin: 0 !important; padding: 18px !important; border-radius: var(--ha-radius) !important; justify-content: flex-start !important; }
	.glance-wrapper .glance-card .header-w { margin: 0 0 4px !important; padding-top: 0 !important; align-items: center; }
	.glance-wrapper .glance-card h3 { font-size: 32px !important; }
	.glance-wrapper .glance-card h4 { font-size: 18px !important; margin: 8px 0 6px !important; }
	.glance-wrapper .glance-card p { font-size: 13.5px !important; line-height: 1.55 !important; margin: 0; }

	/* ---------- Journey timeline: one row per year, stacked ---------- */
	.history-section .history-content { font-size: 15px !important; line-height: 1.65 !important; }
	.history-section .timeline { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 10px; margin: 14px 0 0 !important; padding: 0 !important; }
	.history-section .timeline::before, .history-section .timeline::after { display: none !important; }
	.history-section .timeline-item {
		display: flex !important; align-items: center; gap: 14px; width: 100% !important; flex: 0 0 auto !important;
		margin: 0 !important; padding: 10px 14px !important; background: #fff; border-radius: 16px; box-shadow: var(--ha-shadow); text-align: left;
	}
	.history-section .timeline-year { flex: 0 0 56px; width: 56px !important; height: 56px !important; line-height: 56px !important; font-size: 15px !important; margin: 0 !important; }
	.history-section .timeline-label { font-size: 14.5px !important; line-height: 1.35 !important; margin: 0 !important; }

	/* ---------- Forums: cards one below the other (the slick slider is neutralised on phones) ---------- */
	.forums-section { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; }
	.forums-section .section-intro { max-width: 100% !important; padding-right: 0 !important; padding-bottom: 16px !important; }
	.forums-section .section-intro p { font-size: 14.5px !important; max-width: 100% !important; }
	.forums-section .forums-slider { margin: 0 !important; padding: 0 !important; display: block !important; }
	.forums-section .forums-slider .slick-list { overflow: visible !important; height: auto !important; padding: 0 !important; }
	.forums-section .forums-slider .slick-track { display: flex !important; flex-direction: column; gap: 14px; width: auto !important; transform: none !important; left: 0 !important; }
	.forums-section .forums-slider .slick-slide { float: none !important; width: auto !important; height: auto !important; display: block !important; }
	.forums-section .forums-slider .slick-cloned, .forums-section .forums-slider .slick-arrow, .forums-section .forums-slider .slick-dots { display: none !important; }
	.forums-section .forum-card { border-radius: var(--ha-radius) !important; overflow: hidden; margin: 0 !important; box-shadow: var(--ha-shadow); }
	.forums-section .forum-header { padding: 18px 18px 6px !important; }
	.forums-section .forum-icon { width: 56px !important; height: 56px !important; font-size: 22px !important; }
	.forums-section .forum-title { font-size: 21px !important; margin-top: 10px !important; }
	.forums-section .forum-content { padding: 6px 18px 16px !important; font-size: 14.5px !important; line-height: 1.6 !important; }
	.forums-section .forum-footer { padding: 12px 18px !important; }
	.forums-section .join-btn { display: block; text-align: center; padding: 11px 16px !important; border-radius: 12px !important; }

	/* ---------- About / Benefits / Upcoming events ---------- */
	section.footer-about:not(.bg-white) .section-intro { display: none; } /* repeats the forums heading above */
	.footer-about .main-content { gap: 12px !important; }
	.footer-about .content-card { margin: 0 0 12px !important; padding: 18px !important; border-radius: var(--ha-radius) !important; box-shadow: var(--ha-shadow) !important; }
	.footer-about .content-card h2 { font-size: 19px !important; margin-bottom: 10px !important; }
	.footer-about .content-card p { font-size: 14.5px !important; line-height: 1.6 !important; }
	.footer-about .content-card ul { padding: 0 !important; margin: 0 !important; }
	.footer-about .content-card li { padding: 9px 0 !important; font-size: 14.5px !important; border-bottom: 1px solid var(--ha-line); list-style: none; }
	.footer-about .content-card li:last-child { border-bottom: 0; }
	.footer-about .content-card a[href="/events.php"] { display: block !important; text-align: center; border-radius: 12px !important; padding: 11px 18px !important; }

	/* Media partner & e-book: two tiles side by side */
	.footer-about.bg-white .main-content > .col-md-6 { width: 100%; padding: 0; }
	.footer-about.bg-white .main-content .row { --bs-gutter-x: 12px; flex-wrap: nowrap; align-items: stretch; }
	.footer-about.bg-white .main-content .row > [class*="col-md-"] { flex: 0 0 50%; max-width: 50%; }
	.footer-about.bg-white .logo-link, .footer-about.bg-white .rit-wrap {
		height: 100%; background: #fff; border: 1px solid var(--ha-line); border-radius: 16px; padding: 10px;
		display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--ha-shadow);
	}
	.footer-about.bg-white .logo-link img { width: 100%; height: auto; }
	.footer-about.bg-white .rit-wrap img { border-radius: 10px; }
	.flipbook_link:before { height: 70px !important; width: 70px !important; left: 50% !important; top: 50% !important; }

	/* ---------- footer: tap-to-open sections (home-app.js adds .ha-acc) ---------- */
	.footer { padding-top: 22px !important; }
	.footer .footer-grid { gap: 0 !important; }
	.footer .footer-column { padding: 0 !important; margin: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.footer .footer-column h3 { font-size: 17px !important; margin: 0 !important; padding: 16px 0 !important; }
	.footer .footer-column h3::after { display: none !important; }
	.footer.ha-acc .footer-column h3.ha-acc-head { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
	.footer.ha-acc .footer-column h3.ha-acc-head::before {
		content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; order: 2; transition: transform .2s;
	}
	.footer.ha-acc .footer-column h3.ha-acc-head.ha-open::before { transform: rotate(180deg); }
	.footer.ha-acc .footer-column h3.ha-acc-head + ul { display: none; margin: 0 0 14px !important; }
	.footer.ha-acc .footer-column h3.ha-acc-head.ha-open + ul { display: block; }
	.footer .footer-links li { margin-bottom: 0 !important; }
	.footer .footer-links li a { display: block; padding: 7px 0 !important; font-size: 14.5px !important; }
	.footer .contact-info li { font-size: 14.5px !important; }
	.footer-bottom { padding-bottom: 18px !important; }
}
