/*
Theme Name: Majara Architecture
Theme URI: https://majara.tarpardaz.com
Description: پوسته اختصاصی سایت معماری ماجرا
Author: Tarahan Shomal
Version: 1.0.0
Template: hello-elementor
Text Domain: majara-architecture
*/

:root {
    --mj-brand-primary: #C51127;
    --mj-brand-primary-dark: #9E0E1F;
    --mj-brand-primary-light: #E8687A;
    --mj-brand-primary-rgb: 197, 17, 39;

    --mj-ink: #171717;
    --mj-deep: #23201d;
    --mj-paper: #f5f2ec;
    --mj-warm: #e8e0d6;
    --mj-line: rgba(23, 23, 23, 0.14);
    --mj-muted: #746f69;
    --mj-accent: var(--mj-brand-primary);
    --mj-accent-dark: var(--mj-brand-primary-dark);
    --mj-white: #ffffff;
    --mj-shadow: 0 24px 70px rgba(26, 20, 15, 0.13);
    --mj-radius: 22px;
    --mj-container: min(1240px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mj-paper);
    color: var(--mj-ink);
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
    line-height: 1.8;
    direction: rtl;
}

body,
button,
input,
textarea,
select {
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

.mj-container {
    width: var(--mj-container);
    margin-inline: auto;
}

.mj-section {
    padding: 112px 0;
}

.mj-section--warm {
    background: var(--mj-warm);
}

.mj-section--dark {
    background: var(--mj-deep);
    color: var(--mj-white);
}

.mj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mj-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mj-eyebrow::before {
    width: 34px;
    height: 1px;
    content: "";
    background: currentColor;
}

.mj-title {
    max-width: 780px;
    margin: 14px 0 18px;
    font-size: clamp(1.6rem, 3.2vw, 3.76rem);
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.mj-intro {
    max-width: 680px;
    margin: 0;
    color: var(--mj-muted);
    font-size: 1.06rem;
}

.mj-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 11px 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--mj-accent);
    color: var(--mj-white);
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mj-button:hover {
    background: var(--mj-accent-dark);
    color: var(--mj-white);
    transform: translateY(-2px);
}

.mj-button:focus-visible {
    outline: 3px solid rgba(var(--mj-brand-primary-rgb), .35);
    outline-offset: 2px;
}

.mj-button--ghost {
    border-color: rgba(255,255,255,.38);
    background: transparent;
    color: var(--mj-white);
}

.mj-button--paper {
    border-color: var(--mj-line);
    background: transparent;
    color: var(--mj-ink);
}

.mj-button--paper:hover {
    border-color: var(--mj-accent);
    background: var(--mj-accent);
    color: var(--mj-white);
}

.site-header {
    position: sticky;
    z-index: 80;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(23,23,23,.95);
    color: var(--mj-white);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-brand__logo {
    display: block;
    width: auto;
    max-width: 132px;
    max-height: 46px;
    object-fit: contain;
}

.site-brand__text {
    display: grid;
    gap: 0;
}

.site-brand__name {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.site-brand__slogan {
    max-width: 180px;
    overflow: hidden;
    color: rgba(255,255,255,.6);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-nav {
    margin-inline-start: auto;
}

.primary-nav .menu,
.primary-nav__fallback {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    position: relative;
    color: rgba(255,255,255,.76);
    font-size: .86rem;
    font-weight: 700;
    transition: color .2s ease;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--mj-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
    color: var(--mj-white);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.header-cta {
    flex: 0 0 auto;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: transparent;
    color: var(--mj-white);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    display: block;
    width: 17px;
    height: 1px;
    margin: 4px auto;
    content: "";
    background: currentColor;
}

.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 82px));
    overflow: hidden;
    background: var(--mj-deep);
    color: var(--mj-white);
}

.hero__image,
.hero__veil {
    position: absolute;
    inset: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
}

.hero__veil {
    background:
        linear-gradient(90deg, rgba(16,16,16,.9) 0%, rgba(16,16,16,.58) 48%, rgba(16,16,16,.14) 100%),
        linear-gradient(0deg, rgba(16,16,16,.42), transparent 55%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: min(760px, calc(100vh - 82px));
    padding: 100px 0 86px;
}

.hero__content {
    max-width: 820px;
}

.hero .mj-title {
    max-width: 850px;
    margin-top: 18px;
    font-size: clamp(2.4rem, 5.6vw, 5.92rem);
    line-height: 1.14;
}

.hero__subtitle {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__scroll {
    position: absolute;
    bottom: 34px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.6);
    font-size: .75rem;
    writing-mode: vertical-rl;
}

.hero__scroll::after {
    width: 1px;
    height: 54px;
    content: "";
    background: rgba(255,255,255,.45);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--mj-line);
    border-bottom: 1px solid var(--mj-line);
}

.stat-card {
    min-height: 170px;
    padding: 32px;
    border-inline-start: 1px solid var(--mj-line);
}

.stat-card:first-child {
    border-inline-start: 0;
}

.stat-card__value {
    display: block;
    color: var(--mj-accent);
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
}

.stat-card__label {
    display: block;
    margin-top: 13px;
    color: var(--mj-muted);
    font-size: .9rem;
    font-weight: 700;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.section-head .mj-title {
    margin-bottom: 0;
    font-size: clamp(1.52rem, 2.64vw, 2.72rem);
    line-height: 1.24;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    grid-column: span 4;
    min-height: 390px;
    overflow: hidden;
    border-radius: var(--mj-radius);
    background: #302c28;
    color: var(--mj-white);
    isolation: isolate;
}

.project-card:nth-child(1),
.project-card:nth-child(5) {
    grid-column: span 8;
}

.project-card__image,
.project-card__overlay {
    position: absolute;
    inset: 0;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.project-card__overlay {
    background: linear-gradient(0deg, rgba(13,13,13,.94), rgba(13,13,13,.02) 72%);
}

.project-card:hover .project-card__image img {
    transform: scale(1.06);
}

.project-card__body {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,.7);
    font-size: .77rem;
}

.project-card__title {
    margin: 7px 0 0;
    font-size: clamp(1.024rem, 1.6vw, 1.6rem);
    line-height: 1.32;
}

.project-card__arrow {
    display: inline-flex;
    width: 38px;
    height: 38px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 1.1rem;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    padding: 22px;
    border: 1px solid var(--mj-line);
    border-radius: 18px;
    background: var(--mj-white);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    box-shadow: 0 16px 36px rgba(25,20,16,.09);
    transform: translateY(-4px);
}

.category-card__title {
    margin: 0;
    font-size: 0.864rem;
    font-weight: 900;
    line-height: 1.34;
}

.category-card__count {
    color: var(--mj-accent);
    font-weight: 900;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: start;
}

.about-copy {
    color: rgba(255,255,255,.72);
    font-size: 1.02rem;
}

.about-copy p:first-child {
    margin-top: 0;
}

.quote-list {
    display: grid;
    gap: 18px;
}

.quote-card {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}

.quote-card__text {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .96rem;
}

.quote-card__name {
    display: block;
    margin-top: 14px;
    color: var(--mj-accent);
    font-size: .84rem;
    font-weight: 800;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    overflow: hidden;
    border: 1px solid var(--mj-line);
    border-radius: 18px;
    background: var(--mj-white);
}

.course-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ded7ce;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-card__body {
    padding: 22px;
}

.course-card__title {
    margin: 0;
    font-size: 0.928rem;
    line-height: 1.48;
}

.course-card__excerpt {
    margin: 10px 0 0;
    color: var(--mj-muted);
    font-size: .88rem;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    border-radius: var(--mj-radius);
    background: var(--mj-deep);
    color: var(--mj-white);
    box-shadow: var(--mj-shadow);
}

.contact-panel__copy {
    padding: 54px;
}

.contact-panel__title {
    margin: 13px 0;
    font-size: clamp(1.6rem, 3.2vw, 3.04rem);
    line-height: 1.22;
}

.contact-panel__info {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}

.contact-panel__visual {
    min-height: 340px;
    background:
        linear-gradient(135deg, rgba(var(--mj-brand-primary-rgb), .9), rgba(44,38,32,.72)),
        radial-gradient(circle at 70% 20%, #fbebd8, transparent 35%);
}

.page-hero {
    padding: 88px 0 64px;
    border-bottom: 1px solid var(--mj-line);
    background: var(--mj-warm);
}

.page-hero__title {
    max-width: 850px;
    margin: 10px 0 0;
    font-size: clamp(1.92rem, 4vw, 4.4rem);
    line-height: 1.2;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 58px;
    padding: 82px 0 110px;
}

.page-content,
.article-content {
    min-width: 0;
}

.page-content > *:first-child,
.article-content > *:first-child {
    margin-top: 0;
}

.page-content h2,
.article-content h2 {
    margin-top: 2.1em;
    font-size: clamp(1.2rem, 2vw, 2rem);
    line-height: 1.38;
}

.page-content h3,
.article-content h3 {
    margin-top: 1.8em;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.page-content p,
.article-content p {
    color: #4e4944;
}

.page-content img,
.article-content img {
    border-radius: 12px;
}

.page-aside {
    position: sticky;
    top: 106px;
    align-self: start;
    padding: 24px;
    border: 1px solid var(--mj-line);
    border-radius: 16px;
    background: var(--mj-white);
}

.page-aside__title {
    margin: 0 0 14px;
    font-size: 1rem;
}

.page-aside__item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--mj-line);
    color: var(--mj-muted);
    font-size: .86rem;
}

.page-aside__item:last-child {
    border-bottom: 0;
}

.project-detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--mj-deep);
    color: var(--mj-white);
}

.project-detail-hero__image,
.project-detail-hero__veil {
    position: absolute;
    inset: 0;
}

.project-detail-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .64;
}

.project-detail-hero__veil {
    background: linear-gradient(0deg, rgba(16,16,16,.92), rgba(16,16,16,.18) 75%);
}

.project-detail-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 620px;
    align-items: flex-end;
    padding: 75px 0;
}

.project-detail-hero__title {
    max-width: 880px;
    margin: 10px 0 0;
    font-size: clamp(2.24rem, 4.8vw, 5.2rem);
    line-height: 1.14;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.project-meta__item {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    color: rgba(255,255,255,.8);
    font-size: .78rem;
}

.project-content {
    max-width: 830px;
    margin: 0 auto;
    padding: 90px 0 48px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    padding: 28px 0 110px;
}

.project-gallery__item {
    grid-column: span 4;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #d8d1c7;
    padding: 0;
}

.project-gallery__item:nth-child(5n + 1) {
    grid-column: span 8;
}

.project-gallery__item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-gallery__item:hover img {
    transform: scale(1.05);
}

.site-footer {
    padding: 72px 0 28px;
    background: #151515;
    color: var(--mj-white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(2, .8fr);
    gap: 44px;
    padding-bottom: 52px;
}

.site-footer__title {
    margin: 0 0 16px;
    color: rgba(255,255,255,.56);
    font-size: .77rem;
    font-weight: 800;
}

.site-footer__brand {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
}

.site-footer__text,
.site-footer__link {
    display: block;
    margin: 0 0 9px;
    color: rgba(255,255,255,.66);
    font-size: .88rem;
}

.site-footer__link:hover {
    color: var(--mj-accent);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
    font-size: .76rem;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.7);
    font-size: .72rem;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    margin-top: 40px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list__item {
    padding: 17px;
    border: 1px solid var(--mj-line);
    border-radius: 14px;
    background: var(--mj-white);
}

.contact-list__label {
    display: block;
    margin-bottom: 5px;
    color: var(--mj-muted);
    font-size: .75rem;
}

.contact-list__value {
    font-size: .92rem;
    font-weight: 800;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 70px 0 110px;
}

.archive-grid .project-card {
    grid-column: auto;
}

.archive-grid .project-card:nth-child(1),
.archive-grid .project-card:nth-child(5) {
    grid-column: auto;
}

.archive-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 28px 0 0;
}

.archive-filter a {
    padding: 8px 13px;
    border: 1px solid var(--mj-line);
    border-radius: 999px;
    color: var(--mj-muted);
    font-size: .82rem;
}

.archive-filter a:hover {
    border-color: var(--mj-accent);
    color: var(--mj-accent);
}

.article-shell {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 0 110px;
}

.article-header {
    margin-bottom: 34px;
}

.article-header__title {
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 3.6rem);
    line-height: 1.22;
}

.article-header__meta {
    margin-top: 15px;
    color: var(--mj-muted);
    font-size: .82rem;
}

.article-featured {
    margin: 0 0 42px;
    overflow: hidden;
    border-radius: 18px;
}

.article-featured img {
    display: block;
    width: 100%;
}

.mj-empty {
    padding: 38px;
    border: 1px dashed var(--mj-line);
    border-radius: 16px;
    color: var(--mj-muted);
    text-align: center;
}

@media (max-width: 980px) {
    .site-header__inner {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        padding: 16px 24px 25px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        background: #171717;
    }

    .site-header.is-open .primary-nav {
        display: block;
    }

    .primary-nav .menu,
    .primary-nav__fallback {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
    }

    .primary-nav a {
        display: block;
        padding: 11px 0;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero,
    .hero__inner {
        min-height: 620px;
    }

    .hero__scroll {
        display: none;
    }

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

    .stat-card:nth-child(3) {
        border-inline-start: 0;
        border-top: 1px solid var(--mj-line);
    }

    .stat-card:nth-child(4) {
        border-top: 1px solid var(--mj-line);
    }

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(5) {
        grid-column: span 6;
    }

    .category-list,
    .course-grid,
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-panel,
    .contact-page-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-aside {
        position: static;
    }

    .project-gallery__item,
    .project-gallery__item:nth-child(5n + 1) {
        grid-column: span 6;
    }
}

@media (max-width: 620px) {
    :root {
        --mj-container: min(100% - 32px, 1240px);
    }

    .mj-section {
        padding: 76px 0;
    }

    .site-brand__slogan {
        display: none;
    }

    .hero,
    .hero__inner {
        min-height: 560px;
    }

    .hero__inner {
        align-items: flex-end;
        padding: 70px 0 64px;
    }

    .hero .mj-title {
        font-size: clamp(2.3rem, 11.2vw, 3.9rem);
        line-height: 1.16;
    }

    .stats-grid,
    .category-list,
    .course-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        min-height: 126px;
        border-inline-start: 0;
        border-top: 1px solid var(--mj-line);
    }

    .stat-card:first-child {
        border-top: 0;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(5) {
        grid-column: span 12;
        min-height: 360px;
    }

    .project-gallery__item,
    .project-gallery__item:nth-child(5n + 1) {
        grid-column: span 12;
    }

    .contact-panel__copy {
        padding: 34px 25px;
    }

    .site-footer__bottom {
        align-items: start;
        flex-direction: column;
    }
}

/* MAJARA_HOMEPAGE_TYPOGRAPHY_SPACING_V1_START */

/* Hero title: ~20% smaller with balanced line-height */
body.home main .hero__title,
body.home main .hero h1,
body.home main .home-hero h1,
body.home main .mj-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* Large section headings */
body.home main h2.elementor-heading-title,
body.home main .section-heading__title,
body.home main .section-title,
body.home main .mj-section-title,
body.home main .projects-section__title,
body.home main .courses-section__title,
body.home main .blog-section__title,
body.home main .contact-panel__title {
    font-size: clamp(1.46rem, 2.12vw, 2.16rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

/* Slightly denser homepage rhythm */
body.home main .projects-section,
body.home main .courses-section,
body.home main .blog-section,
body.home main .contact-section,
body.home main .testimonial-section,
body.home main .category-section,
body.home main .mj-section {
    padding-top: clamp(3.75rem, 5vw, 5.75rem);
    padding-bottom: clamp(3.75rem, 5vw, 5.75rem);
}

/* Keep the contact panel balanced after heading reduction */
body.home main .contact-panel {
    gap: clamp(1.5rem, 3vw, 3.25rem);
}

@media (max-width: 767px) {
    body.home main .hero__title,
    body.home main .hero h1,
    body.home main .home-hero h1,
    body.home main .mj-hero h1 {
        font-size: clamp(2rem, 8.5vw, 2.68rem) !important;
        line-height: 1.18 !important;
    }

    body.home main h2.elementor-heading-title,
    body.home main .section-heading__title,
    body.home main .section-title,
    body.home main .mj-section-title,
    body.home main .projects-section__title,
    body.home main .courses-section__title,
    body.home main .blog-section__title,
    body.home main .contact-panel__title {
        font-size: clamp(1.46rem, 6.1vw, 1.74rem) !important;
        line-height: 1.26 !important;
    }

    body.home main .projects-section,
    body.home main .courses-section,
    body.home main .blog-section,
    body.home main .contact-section,
    body.home main .testimonial-section,
    body.home main .category-section,
    body.home main .mj-section {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }
}

/* MAJARA_HOMEPAGE_TYPOGRAPHY_SPACING_V1_END */
