/*
Theme Name: elemntor child theme
Author: Mustafa zidan
Description: Your description goes here
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* ===== Gotham Font ===== */
@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Contact Form 7 - Namaa Style ===== */
.namaa-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.namaa-form .namaa-form__field {
    margin-bottom: 14px;
}

.namaa-form input[type="text"],
.namaa-form input[type="email"],
.namaa-form input[type="tel"],
.namaa-form textarea {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #E3E8ED;
    background: #FFF;
    color: #002E5D;
    text-align: right;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.namaa-form input[type="text"]:focus,
.namaa-form input[type="email"]:focus,
.namaa-form input[type="tel"]:focus,
.namaa-form textarea:focus {
    border-color: #4962A6;
}

.namaa-form input::placeholder,
.namaa-form textarea::placeholder {
    color: #002E5D;
    opacity: 0.6;
    text-align: right;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
}

.namaa-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Phone field with prefix inside */
.namaa-form__field--phone {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #E3E8ED;
    background: #FFF;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.namaa-form__field--phone:focus-within {
    border-color: #4962A6;
}

.namaa-form__field--phone > p {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.namaa-form__field--phone > p > br {
    display: none;
}

.namaa-form__phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
    color: #002E5D;
    opacity: 0.6;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    white-space: nowrap;
    flex-shrink: 0;
    direction: ltr;
}

.namaa-form__field--phone .wpcf7-form-control-wrap {
    flex: 1;
}

.namaa-form__field--phone input[type="tel"] {
    border: none;
    border-radius: 0;
    text-align: right;
    direction: rtl;
    padding: 12px 20px 12px 0;
}

.namaa-form__field--phone input[type="tel"]:focus {
    border: none;
    outline: none;
}

/* Select field */
.namaa-form select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #E3E8ED;
    background: #FFF;
    color: #002E5D;
    text-align: right;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002E5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 16px;
    padding-left: 48px;
    direction: rtl;
}

.namaa-form select:focus {
    border-color: #4962A6;
}

.namaa-form select option[value=""] {
    color: #002E5D;
    opacity: 0.6;
}

/* Submit button */
.namaa-form .wpcf7-submit {
    display: flex;
    height: 44px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 24px;
    border: 1px solid #4962A6;
    background: #FFF;
    color: #4962A6;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.namaa-form .wpcf7-submit:hover {
    background: #4962A6;
    color: #FFF;
}

/* Validation messages */
.namaa-form .wpcf7-not-valid {
    border-color: #dc3545;
}

.namaa-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Response output */
.namaa-form .wpcf7-response-output {
    border-radius: 10px;
    padding: 12px 20px;
    margin-top: 14px;
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .namaa-form input[type="text"],
    .namaa-form input[type="email"],
    .namaa-form input[type="tel"],
    .namaa-form textarea,
    .namaa-form select {
        font-size: 16px;
    }

    .namaa-form input::placeholder,
    .namaa-form textarea::placeholder {
        font-size: 16px;
    }

    .namaa-form__phone-prefix {
        font-size: 16px;
        padding: 0 0 0 14px;
    }
}

/* ===== Single Post - Namaa Style ===== */

/* Hide header & footer on single posts */
.single-post header,
.single-post footer,
.single-post .elementor-location-header,
.single-post .elementor-location-footer,
.single-post .site-header,
.single-post .site-footer {
    display: none !important;
}

.single-post {
    margin: 0;
    padding: 0;
    background: #FFF;
}

.namaa-single__article {
    width: 100%;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

.namaa-single__container {
    max-width: 720px;
    margin: 0 auto;
}

/* Back Button */
.namaa-single__back-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 80px;
}

.namaa-single__back-btn {
    display: flex;
    flex-direction: row-reverse;
    height: 44px;
    padding: 0 16px 0 24px;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 24px;
    border: 1px solid #4962A6;
    background: #FFF;
    color: #4962A6;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.namaa-single__back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(180deg);
}

.namaa-single__back-icon img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.namaa-single__back-icon-hover {
    display: none;
}

.namaa-single__back-btn:hover {
    background: #4962A6;
    color: #FFF;
}

.namaa-single__back-btn:hover .namaa-single__back-icon-default {
    display: none;
}

.namaa-single__back-btn:hover .namaa-single__back-icon-hover {
    display: block;
}

/* Date */
.namaa-single__date {
    display: block;
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    margin-bottom: 24px;
}

/* Title */
.namaa-single__title {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 44px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    margin: 0 0 60px 0;
}

/* Content (text 720px, images 1140px) */
.namaa-single__content {
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.namaa-single__content p {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 36px;
    margin: 0 0 40px 0;
    max-width: 720px;
}

.namaa-single__content p:last-child {
    margin-bottom: 0;
}

.namaa-single__content p:has(img) {
    max-width: 1140px;
}

.namaa-single__content h2 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 34px;
    font-style: normal;
    font-weight: 400;
    line-height: 44px;
    margin: 0 0 20px 0;
    max-width: 720px;
}

.namaa-single__content h3 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: 40px;
    margin: 0 0 16px 0;
    max-width: 720px;
}

.namaa-single__content h4 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    margin: 0 0 16px 0;
    max-width: 720px;
}

.namaa-single__content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 0 40px 0;
}

.namaa-single__content ul,
.namaa-single__content ol {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 36px;
    margin: 0 0 40px 0;
    max-width: 720px;
    padding-right: 24px;
}

.namaa-single__content blockquote {
    border-right: 3px solid #4962A6;
    padding: 16px 24px 16px 0;
    margin: 0 0 40px 0;
    max-width: 720px;
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 36px;
    font-style: italic;
}

.namaa-single__content a {
    color: #4962A6;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.namaa-single__content a:hover {
    opacity: 0.7;
}

/* Bottom Bar */
.namaa-single__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 46, 93, 0.1);
}

/* Share */
.namaa-single__share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row-reverse;
}

.namaa-single__share-label {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    white-space: nowrap;
}

.namaa-single__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #4962A6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.namaa-single__share-icon:hover {
    opacity: 0.7;
}

.namaa-single__share-icon svg {
    width: 24px;
    height: 24px;
}

/* ===== Single Post Responsive ===== */
@media (max-width: 1024px) {
    .namaa-single__back-wrap {
        margin-bottom: 60px;
    }

    .namaa-single__date {
        font-size: 18px;
        line-height: 28px;
    }

    .namaa-single__title {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 40px;
    }

    .namaa-single__content p {
        font-size: 18px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .namaa-single__content h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .namaa-single__content h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .namaa-single__content img {
        border-radius: 8px;
    }

    .namaa-single__article {
        padding: 40px 16px 60px;
    }

    .namaa-single__back-btn {
        font-size: 16px;
        height: 40px;
        padding: 0 20px 0 14px;
        gap: 10px;
    }

    .namaa-single__share-label {
        font-size: 16px;
    }

    .namaa-single__share {
        gap: 12px;
    }
}

/* ===== Custom Templates Base ===== */
.blog,
.archive,
.error404 {
    margin: 0;
    padding: 0;
    background: #FFF;
}

/* ===== Archive / Index ===== */

.namaa-archive__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.namaa-archive__title {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 48px;
    margin: 0 0 60px 0;
    text-align: right;
}

.namaa-archive__list {
    width: 100%;
}

/* Post Card (same design as blog widget) */
.namaa-archive__post {
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 46, 93, 0.1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.namaa-archive__post:first-child {
    border-top: 1px solid rgba(0, 46, 93, 0.1);
}

.namaa-archive__post-image {
    width: 360px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.namaa-archive__post-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.namaa-archive__post-placeholder {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    background: #E3E8ED;
}

.namaa-archive__post-content {
    width: 540px;
    flex-shrink: 0;
    text-align: right;
    margin-inline-start: 96px;
}

.namaa-archive__post-title {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 40px;
    margin: 0 0 12px 0;
}

.namaa-archive__post-date {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
}

/* Arrow */
.namaa-archive__post-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 24px;
    border: 1px solid #4962A6;
    background: #FFF;
    flex-shrink: 0;
    margin-inline-start: auto;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.namaa-archive__arrow-icon,
.namaa-archive__arrow-icon-hover {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.namaa-archive__arrow-icon-hover {
    display: none;
}

.namaa-archive__post:hover .namaa-archive__post-arrow {
    background: #4962A6;
    border-color: #4962A6;
    transform: rotate(180deg);
}

.namaa-archive__post:hover .namaa-archive__arrow-icon {
    display: none;
}

.namaa-archive__post:hover .namaa-archive__arrow-icon-hover {
    display: block;
}

/* Pagination */
.namaa-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.namaa-archive__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 24px;
    border: 1px solid transparent;
    background: #FFF;
    color: #4962A6;
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.namaa-archive__pagination .page-numbers:hover {
    border-color: rgba(73, 98, 166, 0.4);
}

.namaa-archive__pagination .page-numbers.current {
    border-color: #4962A6;
}

/* Empty */
.namaa-archive__empty {
    text-align: center;
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    padding: 60px 0;
}

/* ===== 404 Page ===== */

.namaa-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}

.namaa-404__container {
    text-align: center;
    max-width: 600px;
}

.namaa-404__code {
    color: #4962A6;
    font-family: 'Gotham', sans-serif;
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 16px;
}

.namaa-404__title {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 48px;
    margin: 0 0 16px;
}

.namaa-404__text {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 32px;
    opacity: 0.7;
    margin: 0 0 40px;
}

.namaa-404__btn {
    display: inline-flex;
    flex-direction: row-reverse;
    height: 44px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 24px;
    border: 1px solid #4962A6;
    background: #FFF;
    color: #4962A6;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.namaa-404__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(180deg);
}

.namaa-404__btn-icon img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.namaa-404__btn-icon-hover {
    display: none;
}

.namaa-404__btn:hover {
    background: #4962A6;
    color: #FFF;
}

.namaa-404__btn:hover .namaa-404__btn-icon-default {
    display: none;
}

.namaa-404__btn:hover .namaa-404__btn-icon-hover {
    display: block;
}

/* ===== Page Template (fallback) ===== */

.namaa-page__article {
    width: 100%;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

.namaa-page__container {
    max-width: 720px;
    margin: 0 auto;
}

.namaa-page__title {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 48px;
    margin: 0 0 60px 0;
}

.namaa-page__content {
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.namaa-page__content p {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 36px;
    margin: 0 0 40px 0;
    max-width: 720px;
}

.namaa-page__content p:last-child {
    margin-bottom: 0;
}

.namaa-page__content p:has(img) {
    max-width: 1140px;
}

.namaa-page__content h2 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 44px;
    margin: 0 0 20px 0;
    max-width: 720px;
}

.namaa-page__content h3 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 40px;
    margin: 0 0 16px 0;
    max-width: 720px;
}

.namaa-page__content h4 {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin: 0 0 16px 0;
    max-width: 720px;
}

.namaa-page__content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 0 40px 0;
}

.namaa-page__content ul,
.namaa-page__content ol {
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 36px;
    margin: 0 0 40px 0;
    max-width: 720px;
    padding-right: 24px;
}

.namaa-page__content blockquote {
    border-right: 3px solid #4962A6;
    padding: 16px 24px 16px 0;
    margin: 0 0 40px 0;
    max-width: 720px;
    color: #002E5D;
    font-family: 'Gotham', sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 36px;
    font-style: italic;
}

.namaa-page__content a {
    color: #4962A6;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.namaa-page__content a:hover {
    opacity: 0.7;
}

/* ===== Custom Cursor ===== */

/* Hide default cursor when custom cursor is active */
.namaa-has-cursor,
.namaa-has-cursor * {
    cursor: none !important;
}

/* Outer circle — follows with lag */
.namaa-cursor {
    position: fixed;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border: 1.5px solid #4962A6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

/* Inner dot — follows instantly */
.namaa-cursor-dot {
    position: fixed;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: var(--e-global-color-da6cd92);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, opacity 0.3s ease;
}

/* Hover state: circle grows + fill */
.namaa-cursor--hover {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    background: rgba(73, 98, 166, 0.08);
    border-color: rgba(73, 98, 166, 0.4);
}

.namaa-cursor-dot--hover {
    opacity: 0;
}

/* Press state: shrink */
.namaa-cursor--press {
    width: 32px;
    height: 32px;
    top: -16px;
    left: -16px;
}

@media (max-width: 1024px) {
    .namaa-cursor,
    .namaa-cursor-dot {
        display: none !important;
    }
}

/* ===== Page Loader ===== */

.namaa-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.namaa-loader--hidden {
    opacity: 0;
    visibility: hidden;
}

.namaa-loader__inner {
    text-align: center;
}

.namaa-loader__logo {
    width: 120px;
    height: auto;
    margin-bottom: 32px;
    animation: namaa-loader-pulse 1.5s ease infinite;
}

@keyframes namaa-loader-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.namaa-loader__bar {
    width: 200px;
    height: 3px;
    background: rgba(73, 98, 166, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.namaa-loader__progress {
    height: 100%;
    background: #4962A6;
    border-radius: 3px;
    animation: namaa-loader-bar 1.2s ease infinite;
}

@keyframes namaa-loader-bar {
    0% { width: 0; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0; margin-left: 100%; }
}

/* ===== Sticky Header ===== */
#masthead,
#site-header {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.site-header--sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 46, 93, 0.08);
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.site-header--hidden {
    transform: translateY(-100%) !important;
}

.site-header--sticky .e-con-inner {
    padding: 20px 0;
}

.namaa-header-spacer {
    display: none;
}

.namaa-header-spacer--active {
    display: block;
}

/* ===== Back to Top Button ===== */
.namaa-btt {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #4962A6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 46, 93, 0.1);
}

.namaa-btt--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.namaa-btt:hover {
    background: #4962A6 !important;
    border-color: #4962A6;
}

.namaa-btt__icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.namaa-btt__icon path {
    stroke: #4962A6;
    transition: stroke 0.3s ease;
}

.namaa-btt:hover .namaa-btt__icon path {
    stroke: #fff;
}

.namaa-btt:hover .namaa-btt__icon {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .namaa-btt {
        bottom: 24px;
        left: 24px;
        width: 42px;
        height: 42px;
    }

    .namaa-btt__icon {
        width: 16px;
        height: 16px;
    }

    .site-header--sticky .e-con-inner {
        padding: 0;
    }
}

/* ===== Custom Templates Responsive ===== */
@media (max-width: 1024px) {
    /* Archive */
    .namaa-archive__container {
        padding: 40px 16px 60px;
    }

    .namaa-archive__title {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 40px;
    }

    .namaa-archive__post {
        flex-wrap: wrap;
        gap: 20px;
    }

    .namaa-archive__post-image {
        width: 100%;
    }

    .namaa-archive__post-content {
        width: auto;
        flex: 1;
        margin-inline-start: 0;
    }

    .namaa-archive__post-title {
        font-size: 22px;
        line-height: 30px;
    }

    .namaa-archive__post-date {
        font-size: 16px;
        line-height: 24px;
    }

    .namaa-archive__post-arrow {
        align-self: flex-end;
        margin-inline-start: 16px;
    }

    /* 404 */
    .namaa-404__code {
        font-size: 80px;
    }

    .namaa-404__title {
        font-size: 30px;
        line-height: 36px;
    }

    .namaa-404__text {
        font-size: 18px;
        line-height: 28px;
    }

    /* Page */
    .namaa-page__article {
        padding: 40px 16px 60px;
    }

    .namaa-page__title {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 40px;
    }

    .namaa-page__content p {
        font-size: 18px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .namaa-page__content h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .namaa-page__content h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .namaa-page__content img {
        border-radius: 8px;
    }
}

/* ===== Apply Gotham as Primary Font ===== */
body,
html,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
input, textarea, select, button,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-button .elementor-button {
    font-family: 'Gotham', sans-serif !important;
}

