/* ==========================================================================
   CUSTOM ANIMATIONS AND INTERACTIONS (PURE ANIMATION - DESIGN UNTOUCHED)
   ========================================================================== */

/* Reading Scroll Progress Bar */
.custom-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.custom-progress-bar {
    height: 100%;
    width: 0%;
    background: #d4af37;
    transition: width 0.1s ease-out;
}

/* Author Profile Spacing (Spacing above author & between photo and name) */
.about-author {
    margin-top: 35px !important;
    gap: 20px;
    align-items: center;
}

.about-author img {
    margin-right: 15px;
}

.about-author-detail h3 {
    margin-bottom: 5px;
}

/* 30 Years Experience Section - Image Adjustments */
.desktop-about-year .p1 .col-md-5,
.desktop-about-year .p2 .col-md-5 {
    max-width: 42%;
    flex: 0 0 42%;
}

.desktop-about-year img:not(.a-thumbnail) {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transform: scale(1.15);
}

.a-thumbnail {
    width: 150px !important;
    max-width: 150px !important;
    position: relative !important;
    left: -2rem !important;
    top: -8rem !important;
}

/* Second image moved further up */
.desktop-about-year .p2 {
    margin-top: -120px !important;
}

.desktop-about-year .easete-gal {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.about-easte .easete-gal img:not(.a-thumbnail) {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.about-easte .mobile-about-year img {
    width: 100%;
    max-width: 100%;
}

/* Scroll Reveal Animations (Very Slow & Smooth Glide into place on scroll) */
.custom-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    /* Small smooth reveal rightwards */
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-right {
    opacity: 0;
    transform: translateX(35px);
    /* Small smooth reveal leftwards */
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.custom-reveal-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Active State for Scroll Reveal */
.custom-reveal.custom-active,
.custom-reveal-left.custom-active,
.custom-reveal-right.custom-active,
.custom-reveal-zoom.custom-active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.custom-delay-1 {
    transition-delay: 0.2s;
}

.custom-delay-2 {
    transition-delay: 0.4s;
}

.custom-delay-3 {
    transition-delay: 0.6s;
}

.d-inline-block {
    display: inline-block;
}



/* Subtle Hover Lift (Transform Only) */
.custom-hover-lift {
    transition: transform 0.3s ease;
}

.custom-hover-lift:hover {
    transform: translateY(-5px);
}

/* Image Hover Zoom (Transform Only) */
.custom-img-zoom {
    overflow: hidden;
}

.custom-img-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-img-zoom:hover img {
    transform: scale(1.06);
}

/* Director Profile, Board Card & 3D Image Card Transitions */
.custom-profile-card img,
.custom-board-card,
.custom-3d-card,
.amni-all li {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.amni-all li:hover {
    transform: translateY(-8px) scale(1.03);
}

.apr-ul li,
.apr-ul li:hover {
    transform: none !important;
    transition: none !important;
}

/* Hero & Section Sign Mouse Movement */
.custom-hero-sign,
.projext-sign,
.projct-sig,
.director-sign {
    transition: transform 0.15s ease-out;
    display: inline-block;
}

/* Scroll-Driven Text Color Reveal (Grey to Black) */
.custom-scroll-text-reveal {
    display: block;
}

.custom-word {
    color: #cccccc;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline;
}

.custom-word.custom-word-active {
    color: #000000 !important;
}

/* Back to Top Button */
.custom-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.custom-back-to-top.custom-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-back-to-top:hover {
    background: #d4af37;
    color: #111111;
    transform: translateY(-3px);
}

/* Terms Checkbox & Submit Button Spacing Alignment */
label.termcond {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
    margin-top: 10px !important;
}

label.termcond input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
}

.contact-btn,
input[type="submit"].contact-btn,
button.contact-btn {
    margin-top: 0px !important;
}

/* ==========================================================================
   NEWSLETTER PAGE STYLING (CARD ENHANCEMENT ONLY)
   ========================================================================== */

.newsletter-banner {
    width: 100%;
    margin-top: -2.3rem;
    height: auto;
}

.newsletter-banner img {
    width: 100%;
    display: block;
}

.newsletter-content {
    padding: 60px 0 90px;

}

.newsletter-content .h1 {

    font-weight: 400;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 35px;
}

/* Modern Newsletter Cards (Montserrat font style) */
.news-card-wrapper {
    margin-bottom: 30px;
}

.modern-news-card {

    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 220px;
    text-decoration: none !important;
}

.modern-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f59e0b 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.modern-news-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 20px 35px -10px rgba(212, 175, 55, 0.22), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

.modern-news-card:hover::before {
    opacity: 1;
    height: 5px;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.news-card-header h3,
.news-card-body h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.modern-news-card:hover .news-card-header h3,
.modern-news-card:hover .news-card-body h3 {
    color: #b45309;
}

.news-pdf-icon {
    width: 42px;
    height: 42px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.modern-news-card:hover .news-pdf-icon {
    background: #d4af37;
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
}

.news-card-date {

    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.news-action-text {

    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modern-news-card:hover .news-action-text {
    color: #d4af37;
    transform: translateX(4px);
}

.news-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.modern-news-card:hover .news-arrow-icon {
    background: #d4af37;
    color: #ffffff;
    transform: translateX(4px);
}

/* ==========================================================================
   MOBILE HORIZONTAL IMAGE CENTERED & CROPPED LAYOUT (CONVENIENCE REDEFINED)
   ========================================================================== */
@media only screen and (max-width: 767px) {
    .position-relative:has(.scrollmoving),
    div:has(> .scrollmoving) {
        overflow: hidden;
        width: 100%;
    }

    .scrollmoving {
        margin-top: 3rem !important;
        margin-bottom: 2rem !important;
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .scroll-left,
    .scroll-left.rellax-h {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        left: 0 !important;
        margin: 0 auto !important;
    }

    .s-left,
    .s-left.d-block.d-md-none {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        left: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transform: none !important;
    }

    .s-left.d-block.d-md-none img,
    .s-left img[src*="horz-mobile"] {
        width: 125vw !important;
        min-width: 460px !important;
        max-width: 580px !important;
        height: auto !important;
        display: block !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    .slide-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 5 !important;
        width: 100% !important;
        text-align: center !important;
        pointer-events: none !important;
    }

    .slide-text img {
        width: 290px !important;
        max-width: 82% !important;
        height: auto !important;
        display: inline-block !important;
    }
}