/*
Theme Name: Apty Custom Theme
Theme URI: https://apty.ai
Author: You
Author URI: https://apty.ai
Description: Custom theme for Apty based on user requirements.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --color-alabaster: #F9F9F9;
    --color-grape: #31194A;
    --color-electric-violet: #8131FF;
    --color-crusta: #FF7F2C;
    --color-vermilion: #FF4F0B;

    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
    background-color: #ffffff;
    color: var(--color-grape);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-poppins);
    font-weight: 600;
    margin-top: 0;
    color: var(--color-grape);
}

h1 {
    font-size: 62px;
    line-height: 72px;
}

h2 {
    font-size: 45px;
    line-height: 56px;
}

h3 {
    font-size: 30px;
    line-height: 40px;
}

p {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 24px;
}

.text-sub-lg {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
}

.text-card-heading {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
}

.testimonial-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

.testimonial-designation {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
}

.button-primary {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px !important;
    line-height: 1.8;
    letter-spacing: 0.02em;
    background: linear-gradient(to right, #FF7E4D 0%, #FF591A 100%);
    color: #fff;
    padding: 7px 24px !important;
    border: 1px solid #ffffff;
    border-radius: 96px !important;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: none !important;
}

.button-primary:hover {
    background: linear-gradient(to right, #FF591A 0%, #FF7E4D 100%);
}

/* Header & Mega Menu Styles */
.site-header {
    font-family: var(--font-inter);
    border-bottom: 1px solid #EAEAEA;
}

ul#primary-menu {
    border-bottom: 2px solid #DCDCDC;
    gap: 15px;
}

.navbar-expand-lg .navbar-collapse {
    gap: 20px;
}

.apty-header-logo {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -1px;
}

.apty-main-nav .menu-item {
    padding: 0 4px;
    padding-bottom: 24px;
    /* Extend hover hit area */
    margin-bottom: -24px;
    /* Prevent layout stretch */
    position: relative;
}

.apty-main-nav a.nav-link {
    color: #231F20;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px !important;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: -2%;
}

/* Restructure layout context for fullscreen edge snapping */
.site-header {
    position: relative;
}

.apty-main-nav,
ul#primary-menu,
.apty-main-nav .menu-item {
    position: static !important;
}

/* Move underlines to nav-link natively instead of menu-item so they don't stretch */
.apty-main-nav .menu-item>a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s;
    z-index: 1001;
}

.apty-main-nav .menu-item:hover>a.nav-link::after,
.apty-main-nav .menu-item.active-nav>a.nav-link::after,
.apty-main-nav .menu-item.current-menu-item>a.nav-link::after,
.apty-main-nav .menu-item a.nav-link:hover::after {
    background-color: #5F2F9D !important;
}


/*animation csss*/
.apty-measure-cursor {
  animation: apty-blink 1s infinite;
}

@keyframes apty-blink {
  0% {opacity:1;}
  50% {opacity:0;}
  100% {opacity:1;}
}

.apty-hero-wrapper .apty-hero-container .apty-hero-dashboard {
  overflow: hidden;
}

.apty-hero-wrapper .apty-hero-container .apty-hero-dashboard img{
  width:100%;
  display:block;
  transform: scale(0.8);
  will-change: transform;
}

/* Accurately positioned dynamic caret on hover, pinpoint centered on item */
.apty-main-nav .menu-item.has-mega-menu-dropdown>a.nav-link::before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 16px solid #F6F6F6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1005;
}

.apty-main-nav .menu-item.has-mega-menu-dropdown:hover>a.nav-link::before,
.apty-main-nav .menu-item.has-mega-menu-dropdown:focus-within>a.nav-link::before {
    opacity: 1;
    visibility: visible;
}

.apty-main-nav .menu-item:hover>a.nav-link {
    color: var(--color-grape);
}

.sol-links p,
.res-links p {
    margin-bottom: 5px;
}

.mega-menu-platform .icon-box {
    border-radius: 5px;
}

.mega-menu-platform .icon-box img {
    width: 100% !important;
    height: auto !important;
}

.mega-menu-platform .icon-box img[alt="Apty PULSE"] {
    height: 25px !important;
}

.mega-menu-about .border-end {
    border-right: unset !important;

}

.mega-menu-solutions h6 {
    font-size: 16px !important;
    line-height: 24px;
    color: #555 !important;
    font-weight: 400 !important;
    font-family: 'Poppins';
}

/* Base Dropdown behavior */
.mega-menu-content-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto !important;
    transform: none !important;
    width: max-content;
    max-width: none;
    /* Let it stretch if needed */
    background-color: #F6F6F6;
    /* Light gray background mimicking screenshots */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    padding: 40px;
    cursor: default;
}

/* Individual Layout Widths (Positioning mapped dynamically now) */
.layout-platform {
    width: 68vw;
}

.layout-solutions {
    width: 95vw;
}

.layout-resources {
    width: 45vw;
}

.layout-about {
    width: 58vw;
}

/* Dropdown Hover State */
.has-mega-menu-dropdown:hover .mega-menu-content-wrapper {
    opacity: 1;
    visibility: visible;
}

/* Typography Inside Dropdown */
.apty-mega-title {
    font-size: 17px;
    font-family: 'Poppins';
    color: #1A1A1A;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    font-weight: 500 !important;
}

.apty-mega-title a.mega-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.apty-mega-title:hover,
.apty-mega-title a.mega-link:hover,
.menu-item-box:hover .apty-mega-title {
    color: var(--color-vermilion);
}

.apty-mega-desc {
    font-size: 14px !important;
    color: #555;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 305px;
}

/* Icons in Platform dropdown */
.icon-box {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-vermilion);
}

.icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Solutions & Resources Vertical Lists */
.sol-links ul,
.res-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sol-links li,
.res-links li {
    margin-bottom: 14px;
}

.sol-links a,
.res-links a {
    color: #1A1A1A !important;
    font-size: 16px;
    line-height: 2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-block;
    margin-bottom: 5px;
}

.mega-menu-resources h6 {
    font-size: 16px !important;
    font-weight: 400 !important;
    font-family: 'Poppins';
}

.sol-links a:hover,
.res-links a:hover {
    color: var(--color-vermilion) !important;
}

/* Columns borders */
.mega-menu-content-wrapper .border-end {
    border-right: 1px solid #D9D9D9 !important;
}

.mega-sol-col {
    padding: 0 25px;
}

.mega-sol-col:first-child {
    padding-left: 0;
}

.mega-sol-col:last-child {
    padding-right: 0;
    border-right: 0 !important;
}

/* Social icons area */
.header-social a {
    color: #888;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-social a:hover {
    color: var(--color-vermilion) !important;
}

/* Footer Styles */
.site-footer {
    background-color: #1E152B;
    color: var(--color-alabaster);
    padding: 60px 40px 30px;
    font-family: var(--font-inter);
}

.site-footer a {
    font-size: 16px;
    font-weight: 300;
    color: #D7D7D7;
    letter-spacing: -2%;
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-crusta);
}

/* Grid and Flex layouts are handled by Bootstrap CSS classes */

.footer-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-family: 'Poppins';
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

/* Social icons area */
.social-heading {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* Bottom Footer */
.footer-bottom {
    font-size: 16px;
    font-weight: 300;
    color: #D7D7D7;
}

.footer-bottom-links {
    margin-left: 5px;
}

.footer-bottom-links a {
    margin: 0 5px;
}

.apty-logo-text {
    color: var(--color-crusta);
}

.footer-column.social-wrapper {
    display: flex;
    align-items: flex-end;
}

.footer-logo {
    max-width: 138px;
}

img {
    width: 100%;
}

footer.site-footer .footer-column {
    margin-bottom: 40px;
}



/* Custom Container Media Queries */
@media only screen and (min-width: 1399px) {
    .container {
        max-width: 1400px;
    }

    .medium-container {
        max-width: 1100px;
    }
}

@media only screen and (min-width: 1199px) {
    .container {
        max-width: 1200px;
    }

    .small-container {
        max-width: 980px;
    }

    .medium-container {
        max-width: 1000px;
    }
}

@media (min-width: 991.5px) and (max-width: 1199px) {
    .layout-about {
        width: 49vw;
    }

    .layout-solutions {
        width: 95vw;
    }
}

@media(max-width: 1024px) {
    ul#primary-menu {
        gap: 8px;
    }
}

@media (max-width: 980px) {
    .container {
        max-width: 880px;
    }

    .container-medium {
        max-width: 900px;
    }

    .container-sml {
        max-width: 800px;
    }

    .blog_container {
        max-width: 750px;
    }
}

@media (max-width: 860px) {
    .container {
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 680px;
    }
}

@media(max-width: 767px) {
    footer.site-footer .footer-column {
        margin-bottom: 30px;
    }

    .footer-logo {
        max-width: 98px;
    }

    a.navbar-brand img {
        max-width: 80px !important;
    }
}

@media (max-width: 668px) {
    .container {
        max-width: 580px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 420px;
    }
}

@media (max-width: 420px) {
    .container {
        max-width: 360px;
    }
}

@media (max-width: 360px) {
    .container {
        max-width: 320px;
    }
}

@media (max-width: 340px) {
    .container {
        max-width: 280px;
    }
}

/* =========================================================================
   Mobile Responsiveness (Mega Menus & Header)
   ========================================================================= */
@media (max-width: 992px) {

    /* Stack Nav Items */
    .apty-main-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        margin-top: 20px !important;
    }

    .apty-main-nav #primary-menu {
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .apty-main-nav .menu-item {
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #E5E5E5;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .apty-main-nav .nav-link {
        padding: 15px 0 !important;
        width: 100%;
        display: block;
    }

    /* Hide continuous gap lines and hover underlines on mobile */
    .apty-main-nav .menu-item::before,
    .apty-main-nav .menu-item::after,
    .apty-main-nav #primary-menu:hover .menu-item:hover::before {
        display: none !important;
    }

    /* Convert Mega Menu Modal to Accordion block */
    .mega-menu-content-wrapper {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 0;
        visibility: hidden;
        display: none;
        padding: 20px 10px !important;
        box-shadow: none !important;
        background-color: #fafafa !important;
        border-radius: 0;
        margin-top: 0 !important;
    }

    /* Hide individual caret arrows */
    .mega-menu-content-wrapper::before {
        display: none !important;
    }

    /* Display block on hover (tap on mobile) */
    .has-mega-menu-dropdown:hover .mega-menu-content-wrapper,
    .has-mega-menu-dropdown:focus-within .mega-menu-content-wrapper,
    .has-mega-menu-dropdown.active-nav .mega-menu-content-wrapper {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    /* Stack interior rows and columns vertically */
    .mega-menu-content-wrapper .row {
        flex-direction: column;
		        padding: 0 12px;
    }
	
	.mega-menu-solutions h6 { margin-bottom: 12px !important; }

    .mega-menu-content-wrapper .col-6,
    .mega-menu-content-wrapper .col-7,
    .mega-menu-content-wrapper .col-5,
    .mega-menu-content-wrapper .col {
        width: 100% !important;
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 24px;
    }

    .mega-menu-content-wrapper .col:last-child {
        margin-bottom: 0;
    }

    /* Adjust CTA spacing */
    .header-cta {
        margin-top: 15px;
        display: inline-block;
    }
	.site-footer{padding: 60px 20px 30px;}
}

/*font*/
p,li{
    font-family: var(--font-inter) !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
}

.apty-hero-heading{
    font-family: var(--font-poppins) !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.apty-hero-subtext{
    font-family: var(--font-inter) !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
}
.apty-section-heading{
    font-family: var(--font-poppins) !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.apty-section-subtext,.apty-testimonial-designation{
    font-family: var(--font-inter) !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
}
.apty-button-primary{
    font-family: var(--font-inter) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.apty-tab-head,.apty-tab-main-heading {
    font-family: var(--font-inter) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
.apty-text-card-heading{
     font-family: var(--font-poppins) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.home .apty-measure-title{font-size: 60px !important; line-height: 1.2 !important;}

@media (min-width: 767px) and (max-width: 991px){
p,li{
     font-size: 18px !important;
}   
.apty-hero-heading{
  font-size: 38px !important;
}
.apty-hero-subtext{
    font-size: 18px !important;
}
.apty-connect-card .hs-button,.apty-sec-card .hs-button,.apty-button-primary,.apty-tab-head,.apty-tab-main-heading{
    font-size: 18px !important;
}
.apty-section-heading{
    font-size: 32px !important;
}
.apty-section-subtext,.apty-testimonial-designation{
    font-size: 18px !important;
}

.aks-apty-box h3.apty-text-card-heading,.apty-text-card-heading{
    font-size: 22px !important;
}

}

@media (max-width: 767px){
p,li{
    font-size: 16px !important;
}    
.apty-hero-heading{
  font-size: 32px !important;
}
.apty-hero-subtext{
    font-size: 16px !important;
}
.apty-connect-card .hs-button,.apty-sec-card .hs-button,.apty-button-primary,.apty-tab-head,.apty-tab-main-heading{
    font-size: 16px !important;
}
.apty-section-heading{
    font-size: 30px !important;
}
.apty-section-subtext,.apty-testimonial-designation{
    font-size: 16px !important;
}
.aks-apty-box h3.apty-text-card-heading,.apty-text-card-heading{
    font-size: 20px !important;
}
	.home .apty-measure-title{font-size: 36px !important; line-height: 1.2 !important;}
}