/* ==========================================================================
   TeachCPA Premium — responsive behaviour
   Mobile-first priority: 360 / 375 / 390 / 430 / tablet / laptop / 1440 / 1920
   ========================================================================== */

@media (max-width: 1200px) {
	.hero-inner {
		gap: 38px;
	}

	.hero-title {
		font-size: clamp(34px, 5vw, 54px);
	}

	.hero-float--adsterra {
		left: 32%;
	}

	.hero-float--monetag {
		right: 0;
	}

	.hero-player-float--a {
		left: -12px;
	}

	.hero-player-float--b {
		right: -10px;
	}

	.footer-grid {
		gap: 34px;
	}
}

@media (max-width: 1080px) {
	.container,
	.hero-inner {
		width: min(100% - 40px, 1240px);
	}

	.class-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.resource-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.proof-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.proof-card--wide {
		grid-column: span 2;
	}

	.about-layout {
		gap: 50px;
	}

	.faq-layout {
		gap: 44px;
	}

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.footer-brand-col {
		grid-column: span 3;
		padding-bottom: 22px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.footer-description {
		max-width: 520px;
	}
}

/* --------------------------------------------------------------------------
   Mobile navigation breakpoint
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
	:root {
		--header-h: 72px;
	}

	/* The glass blur creates a containing block that would trap the fixed
	   mobile drawer inside the header, so the header goes solid on phones. */
	.site-header {
		z-index: 1002;
		background: rgba(5, 8, 28, 0.94);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
	}

	.primary-nav {
		position: fixed;
		top: var(--tcp-admin-bar);
		right: 0;
		bottom: 0;
		z-index: 1001;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		width: min(86vw, 360px);
		padding: calc(var(--header-h) + 26px) 24px 28px;
		background: linear-gradient(170deg, #0a1032 0%, #060a22 60%, #03040f 100%);
		border-left: 1px solid rgba(143, 247, 255, 0.16);
		box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
		overflow-y: auto;
		transform: translateX(104%);
		visibility: hidden;
		transition: transform 0.45s var(--ease-spring), visibility 0.45s;
	}

	.primary-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: 100%;
	}

	.nav-list > li > a {
		justify-content: flex-start;
		padding: 14px 16px;
		border-radius: 13px;
		color: rgba(233, 238, 255, 0.82);
		font-size: 16px;
		font-weight: 500;
	}

	.nav-list > li > a::after {
		left: auto;
		right: 16px;
		bottom: 50%;
		width: 6px;
		height: 6px;
		transform: translate(0, 50%) scale(0.4);
	}

	.nav-list > li > a:hover::after,
	.nav-list > li.current-menu-item > a::after,
	.nav-list > li.current_page_item > a::after {
		transform: translate(0, 50%) scale(1);
	}

	.nav-list > li > a:hover,
	.nav-list > li.current-menu-item > a,
	.nav-list > li.current_page_item > a {
		background: rgba(255, 255, 255, 0.07);
	}

	.nav-foot {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: auto;
		padding-top: 28px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.nav-foot-note {
		display: inline-flex;
		align-items: center;
		gap: 9px;
		color: rgba(219, 228, 255, 0.42);
		font-size: 11px;
	}

	body.tcp-nav-open {
		overflow: hidden;
	}

	.hero-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 42px;
		padding-top: 44px;
		padding-bottom: 34px;
	}

	.hero-copy {
		max-width: 680px;
	}

	.hero-visual {
		width: 100%;
		max-width: 660px;
		margin-inline: auto;
	}

	.hero {
		min-height: auto;
	}

	.hero-bottom {
		margin-top: 10px;
	}

	.hero-title {
		font-size: clamp(34px, 6.4vw, 52px);
	}

	.hero-player-float--a {
		left: -6px;
	}

	.hero-player-float--b {
		right: -6px;
	}

	.hero-float--adsterra {
		left: 36%;
	}

	.hero-float--monetag {
		right: 0;
	}

	.hero-chip--one {
		left: 0;
	}

	.hero-chip--two {
		right: 0;
	}

	.section {
		padding: 84px 0;
	}

	.section-head {
		margin-bottom: 42px;
	}

	.about-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.about-visual {
		max-width: 480px;
		margin-inline: auto;
	}

	.about-badge {
		right: 6px;
		bottom: 18px;
	}

	.faq-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.faq-intro {
		position: static;
	}

	.contact-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		padding: 38px;
	}

	.journey-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.journey-line {
		display: none;
	}

	.blog-head-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.blog-grid,
	.blog-grid--archive,
	.blog-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.footer-brand-col {
		grid-column: span 2;
	}

	.footer-bottom {
		justify-content: center;
		text-align: center;
	}

	.footer-bottom-contact,
	.footer-bottom-actions {
		justify-content: center;
	}
}

@media (max-width: 760px) {
	.container,
	.hero-inner {
		width: min(100% - 32px, 1240px);
	}

	body {
		font-size: 15px;
	}

	.section {
		padding: 70px 0;
	}

	.section-title {
		font-size: clamp(26px, 6.6vw, 36px);
	}

	.section-sub {
		font-size: 14.5px;
		line-height: 1.75;
	}

	.hero-inner {
		padding-top: 34px;
		gap: 34px;
	}

	.hero-eyebrow {
		flex-wrap: wrap;
		row-gap: 4px;
		margin-bottom: 18px;
		font-size: 10.5px;
	}

	.hero-eyebrow-soft {
		display: none;
	}

	.hero-eyebrow-dot {
		display: none;
	}

	.hero-title {
		font-size: clamp(30px, 8.4vw, 44px);
		line-height: 1.1;
		margin-bottom: 14px;
	}

	.hero-title .tcp-l[data-lang="bn"] {
		line-height: 1.34;
	}

	.hero-sub {
		font-size: 16px;
	}

	.hero-desc {
		font-size: 14px;
		line-height: 1.8;
	}

	.hero-note {
		font-size: 12px;
		padding: 10px 12px;
	}

	.hero-actions {
		gap: 10px;
	}

	.hero-actions .btn {
		flex: 0 1 auto;
	}

	.hero-meta {
		gap: 8px 16px;
		padding-top: 18px;
	}

	.hero-meta li {
		font-size: 11px;
	}

	.hero-player-frame {
		padding: 7px;
		border-radius: 20px;
	}

	.hero-visual {
		padding: 20px 0;
	}

	.hero-player-media {
		border-radius: 14px;
	}

	.hero-play-orb {
		width: 58px;
		height: 58px;
	}

	.hero-play-orb svg {
		width: 21px;
		height: 21px;
	}

	.hero-player-caption {
		left: 12px;
		right: 12px;
		bottom: 44px;
	}

	.hero-player-caption-icon {
		width: 26px;
		height: 26px;
	}

	.hero-player-caption-text {
		font-size: 11px;
	}

	.hero-player-controls {
		left: 12px;
		right: 12px;
		bottom: 10px;
		padding: 6px 8px;
	}

	.hero-float,
	.hero-chip {
		display: none;
	}

	.hero-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding-bottom: 26px;
	}

	.hero-platforms {
		gap: 8px 14px;
		font-size: 9px;
	}

	.hero-platforms > span {
		width: 100%;
	}

	.classes-ribbon {
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 32px;
	}

	.classes-ribbon-line {
		display: none;
	}

	.classes-ribbon > span:last-child {
		width: 100%;
	}

	.class-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.class-body {
		padding: 20px 20px 18px;
	}

	.resource-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.resource-card {
		padding: 20px 20px 17px;
	}

	.resource-top {
		margin-bottom: 16px;
	}

	.resource-body {
		margin-bottom: 16px;
	}

	.proof-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.proof-card--wide {
		grid-column: span 2;
		aspect-ratio: 2 / 1;
	}

	.proof-overlay {
		opacity: 1;
		transform: none;
		padding: 34px 11px 10px;
	}

	.proof-zoom {
		display: none;
	}

	.journey-track {
		grid-template-columns: minmax(0, 1fr);
	}

	.journey-step {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 16px 18px;
		text-align: left;
	}

	.journey-icon {
		width: 44px;
		height: 44px;
		margin: 0;
		flex: none;
		border-radius: 13px;
	}

	.journey-icon svg {
		width: 20px;
		height: 20px;
	}

	.journey-step h3 {
		font-size: 13.5px;
	}

	.journey-number {
		top: 8px;
		right: 12px;
	}

	.blog-grid,
	.blog-grid--archive,
	.blog-grid--related {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.blog-body {
		padding: 20px;
	}

	.about-lead {
		font-size: 15.5px;
	}

	.about-body {
		font-size: 13.5px;
	}

	.about-points li {
		font-size: 12.5px;
	}

	.about-badge {
		padding: 10px 12px;
	}

	.faq-item summary {
		padding: 16px;
		gap: 11px;
	}

	.faq-q {
		font-size: 13.5px;
	}

	.faq-a {
		padding: 0 16px 18px 43px;
		font-size: 13px;
	}

	.contact-panel {
		padding: 28px 22px;
		border-radius: 24px;
	}

	.contact-sub {
		font-size: 13.5px;
	}

	.contact-btn {
		padding: 12px 13px;
		gap: 11px;
	}

	.contact-btn-icon {
		width: 38px;
		height: 38px;
	}

	.contact-btn-text b {
		font-size: 12px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 26px 20px;
		padding-bottom: 34px;
	}

	.footer-brand-col {
		grid-column: span 2;
		padding-bottom: 20px;
	}

	.footer-watermark {
		font-size: 150px;
	}

	.footer-bottom {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.site-footer {
		padding-top: 58px;
	}

	.page-hero {
		padding: calc(var(--header-h) + var(--tcp-admin-bar) + 62px) 0 56px;
	}

	.page-hero h1 {
		font-size: clamp(27px, 7vw, 38px);
	}

	.page-hero p {
		font-size: 14px;
	}

	.single-hero {
		padding-top: calc(var(--header-h) + var(--tcp-admin-bar) + 42px);
	}

	.single-hero-inner {
		padding-bottom: 34px;
	}

	.single-hero h1 {
		font-size: clamp(25px, 7vw, 36px);
	}

	.section--single {
		padding-top: 44px;
	}

	.entry-content {
		font-size: 15px;
		line-height: 1.85;
	}

	.entry-content h2 {
		font-size: 23px;
	}

	.entry-content h3 {
		font-size: 19px;
	}

	.single-cover img {
		border-radius: 16px;
	}

	.single-tools {
		flex-direction: column;
		align-items: flex-start;
	}

	.author-box {
		flex-direction: column;
		gap: 12px;
		padding: 20px;
	}

	.tcp-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.tcp-post-nav .nav-next {
		text-align: left;
	}

	.comment-list .children {
		margin-left: 4px;
		padding-left: 14px;
	}

	.not-found {
		padding-top: calc(var(--header-h) + var(--tcp-admin-bar) + 60px);
		padding-bottom: 70px;
	}

	.tcp-lightbox-nav {
		width: 38px;
		height: 38px;
	}

	.tcp-lightbox-nav--prev {
		left: -4px;
	}

	.tcp-lightbox-nav--next {
		right: -4px;
	}

	.tcp-lightbox-figure img {
		max-height: calc(100vh - 170px);
	}

	.tcp-lang-dialog {
		padding: 26px 20px 20px;
		border-radius: 22px;
	}

	.tcp-lang-dialog h2 {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.primary-nav {
		top: calc(var(--tcp-admin-bar) + var(--header-h));
		width: 100%;
		padding: 18px 22px 26px;
		border-left: 0;
		border-top: 1px solid rgba(143, 247, 255, 0.16);
	}

	.container,
	.hero-inner {
		width: min(100% - 28px, 1240px);
	}

	.brand-name {
		font-size: 17px;
	}

	.brand-mark {
		width: 38px;
		height: 38px;
		border-radius: 12px;
		font-size: 13px;
	}

	.brand-tagline {
		font-size: 9px;
	}

	.hero-title {
		font-size: clamp(27px, 8.8vw, 36px);
	}

	.hero-title .tcp-l[data-lang="bn"] {
		line-height: 1.38;
	}

	.hero-sub {
		font-size: 15px;
	}

	.hero-eyebrow {
		padding: 7px 11px;
		font-size: 9.5px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.hero-meta li {
		width: calc(50% - 8px);
		font-size: 10.5px;
	}

	.hero-float {
		display: none;
	}

	.hero-chip--two {
		display: none;
	}

	.hero-player-caption-text {
		max-width: 76%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hero-platforms b:nth-of-type(4) {
		display: none;
	}

	.class-num {
		width: 30px;
		height: 30px;
		font-size: 11px;
	}

	.class-duration {
		font-size: 9px;
		padding: 4px 8px;
	}

	.section-title {
		font-size: clamp(24px, 7vw, 31px);
	}

	.faq-help-card {
		padding: 14px;
	}

	.faq-help-card b {
		font-size: 12px;
	}

	.faq-help-card p {
		font-size: 10.5px;
	}

	.contact-copy .section-title {
		font-size: clamp(24px, 7vw, 30px);
	}

	.contact-btn-text b {
		max-width: 62vw;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.footer-brand-col {
		grid-column: auto;
	}

	.footer-bottom-actions {
		gap: 10px;
	}

	.not-found-actions {
		flex-direction: column;
		width: 100%;
	}

	.not-found-actions .btn {
		width: 100%;
	}

	.tcp-pagination .page-numbers,
	.navigation.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		font-size: 11.5px;
	}

	.tcp-share {
		flex-wrap: wrap;
	}

	.tcp-lightbox-nav {
		top: auto;
		bottom: -54px;
		transform: none;
	}
}

@media (max-width: 380px) {
	.brand-tagline {
		display: none;
	}

	.hero-title {
		font-size: 26px;
	}

	.hero-desc {
		font-size: 13px;
	}

	.proof-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.proof-card--wide {
		grid-column: auto;
		aspect-ratio: 1;
	}

	.footer-contact-chips a {
		font-size: 9.5px;
		padding: 6px 9px;
	}

	.tcp-lang-choice {
		padding: 11px 12px;
	}

	.tcp-lang-choice-icon {
		width: 34px;
		height: 34px;
	}
}

/* Large desktops: keep the layout beautifully centred. */
@media (min-width: 1500px) {
	.container,
	.hero-inner {
		width: min(100% - 80px, 1320px);
	}

	.hero-title {
		font-size: 64px;
	}

	.hero-player {
		max-width: 640px;
	}

	.class-grid {
		gap: 26px;
	}

	.section {
		padding: 126px 0;
	}
}

@media (min-width: 1900px) {
	.container,
	.hero-inner {
		width: min(100% - 120px, 1400px);
	}

	.hero-title {
		font-size: 68px;
	}
}

/* Landscape phones: avoid an unnecessarily tall hero. */
@media (max-height: 620px) and (min-width: 700px) {
	.hero {
		min-height: 700px;
	}
}
