/*
Theme Name:     Admissions Consultants
Description:    A custom theme for Admissions Consultants based on the parent theme Enfold.
Version:        1.1
Author:         ACS Creative
Author URI:     http://www.acscreative.com/
Template:       enfold
*/

@import url('includes/elements.css');
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

/* ------------------------------------------------------------
    ROOT VARIABLES
------------------------------------------------------------ */
:root {
    /* CONTAINER WIDTH */
    --max-width-base: 720px;
    --max-width-md: 820px;
    --max-width-lg: 920px;

    /* COLORS */
    --grey: #494949;
    --purple: #553987;
    --blue: #62B7E9;
    --secondary-blue: #0E416B;
    --dark-blue: #000625;
    --light-blue: #E0F1FB;
    --light-grey: #8C959D;
    --white: #ffffff;
    --secondary-white: #EFF7FC;
    
    --gradient-purple-blue: linear-gradient(90deg, #553987 0%, #5672A8 50%, #62B7E9 100%);
    --gradient-blue-purple: linear-gradient(90deg, #62B7E9 0%, #5672A8 50%, #553987 100%);

    /* FONT SIZES */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.875rem);
    --text-base: clamp(1rem, 0.9861rem + 0.0741vw, 1.125rem);
    --text-md: clamp(1.25rem, 1.2361rem + 0.0741vw, 1.375rem);
    --text-lg: clamp(1.25rem, 1.2222rem + 0.1481vw, 1.5rem);
    --text-xl: clamp(1.375rem, 1.3333rem + 0.2222vw, 1.75rem);
    --text-2xl: clamp(1.75rem, 1.6806rem + 0.3704vw, 2.375rem);
    --text-3xl: clamp(2.5rem, 2.4167rem + 0.4444vw, 3.25rem);
    --text-4xl: clamp(2.75rem, 2.4rem + 2.5vw, 4rem);
    --text-5xl: clamp(3.125rem, 2.9167rem + 1.1111vw, 5rem);

    /* UTILITIES */
    --opacity-full: 1;
    --opacity-half: 0.5;
    --opacity-quarter: 0.25;
    --transition: all .5s ease-in-out;
    --transition-long: all .7s ease-in-out;
    
    /* BORDER RADIUS */
    --radius-xs: 0.875rem;
    --radius-sm: 1rem;
    --radius-base: 1.125rem;
    --radius-md: 24px;
    --radius-lg: 2.25rem;
    --radius-full: 99px;

    /* SHADOW */
    --shadow-standard: 0 3.206px 12.824px 0 rgba(0, 6, 37, 0.15);
	--shadow-hover:    0 6.5px 24px 0 rgba(0, 6, 37, 0.22);
}


/* ------------------------------------------------------------
    GLOBAL ANIMATIONS
------------------------------------------------------------ */
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes underline-draw {
    to { transform: scaleX(1); }
}


@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.background-gradient-animated {
	background: var(--gradient-purple-blue);
  /* The three specific colors arranged in a diagonal gradient */
  background: linear-gradient(
    -45deg,
    #553987,
    #5672A8,
    #62B7E9,
    #5672A8,
    #553987,
    #5672A8,
    #62B7E9,
  );
  
  /* Zooming the background to 400% allows the animation 
     to pan across the gradient, creating the movement effect */
  background-size: 400% 400%;
  
  /* The animation definition:
     - gradientAnimation: the keyframes name
     - 15s: duration (increase for slower, decrease for faster)
     - ease-in-out: smooth start and end
     - infinite: loops forever
  */
  animation: gradientAnimation 15s ease-in-out infinite;
  
  /* Optional: Ensures the container takes up full viewport height 
     if used on a body/main element */
  width: 100%;
}



/* ------------------------------------------------------------
    UTILITIES & HELPERS
------------------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.flex-row-justify-between{
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
}




.flex-row-gap-14{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
}

.flex-row-gap-14 p,
.flex-row-gap-14 h2{
    padding: 0px !important;
    margin: 0px !important;
}

.content-centered .entry-content-wrapper,
.content-centered {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
}

.max-w-sm{
    max-width: 520px !important;
    margin: auto !important;
}


.shadow-standard{
    box-shadow: var(--shadow-standard) !important;
}

/* GRADIENT BARS */
.top-gradient-bar,
.bottom-gradient-bar {
	position: relative !important;
}

.top-gradient-bar::before,
.bottom-gradient-bar::before {
    background: var(--gradient-purple-blue);
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
	  background: linear-gradient(
    -45deg,
    #553987,
    #5672A8,
    #62B7E9,
  );
  background-size: 300% 300%;
  animation: gradientAnimation 15s ease-in-out infinite;
}

.top-gradient-bar::before{
	top: 0;
	height: 140px;
}

.bottom-gradient-bar::before {
    bottom: 0;
	height: 275px;
}

.top-gradient-bar .content,
.bottom-gradient-bar .content {
	padding-bottom: 0px !important;
}



/* CLICKABLE PANEL */

.panel-clickable{
	border-radius: var(--radius-base) !important;
	box-shadow: var(--shadow-standard);
	transition: var(--transition);
}

.panel-clickable .av_textblock_section{
	border-radius: 0px 0px var(--radius-base) var(--radius-base) !important;
}

.panel-clickable:hover{
	border-radius: var(--radius-base) !important;
	box-shadow: var(--shadow-hover);
	transition: var(--transition);
}

.panel-clickable .av_textblock_section{
	background: linear-gradient( to top, #553987, rgba(85, 57, 135,0.52), rgba(85, 57, 135,0.01) );
	transition: var(--transition) !important;
} 

.panel-clickable:hover .av_textblock_section{
	background: linear-gradient( to top, #553987, rgba(85, 57, 135,0.8), rgba(85, 57, 135,0.01) );
	transition: var(--transition) !important;
} 

.panel-clickable .avia_textblock{
	transition: var(--transition) !important;
} 
.panel-clickable:hover .avia_textblock{
	transition: var(--transition) !important;
	padding: 80px 36px 13px 36px !important;
} 

.panel-clickable .av_textblock_section h2{
	color: var(--white) !important;
	transition: var(--transition) !important;
} 


.panel-clickable:hover .av_textblock_section h2{
	color: var(--white) !important;
	transition: var(--transition) !important;
	text-decoration: underline !important;
} 


/* NUMBERS */
.animated-numbers{
	box-shadow: var(--shadow-standard) !important;
}

.animated-numbers .avia-animated-number{
	text-align: left;
}

.animated-numbers .heading{
	font-size: var(--text-5xl) !important;
	color: var(--purple) !important;
	text-align: left;
	font-weight: 700 !important;
}

.animated-numbers .avia-animated-number-content p{
	font-size: var(--text-lg) !important;
	text-align: left;
	color: var(--light-grey) !important;
	text-transform: uppercase;
	margin-top: 16px !important;
	font-weight: 600 !important;
}


/* ------------------------------------------------------------
    MARGIN & PADDING
------------------------------------------------------------ */

.px-24 .flex_column_table{
	padding: 0px 24px !important;
}

.mt--120 .entry-content-wrapper{
    margin-top: -120px !important;
}
.mt--250 .entry-content-wrapper{
    margin-top: -250px !important;
}


.container-w-full .container{
	width: 100% !important;
	max-width: 100vw !important;
	padding: 0px !important;
}




/* ------------------------------------------------------------
    TYPOGRAPHY
------------------------------------------------------------ */

.uppercase{
	text-transform: uppercase !important;
}

/* Reset & Base */
h1, h2, h3, h4, h5, h6 { margin-top: 0; padding-bottom: 0; margin-bottom: 0.5em; }
h1, h2 { overflow: hidden !important; text-transform: none !important; font-weight: 800 !important; }

/* Sizes & Specifics */
h1 { font-size: var(--text-3xl); line-height: 1.2; letter-spacing: 0px !important; }
h2 { font-size: var(--text-2xl); line-height: 1.25; color: var(--purple); letter-spacing: 0px !important;}
h3 { font-size: var(--text-xl); line-height: 1.3; letter-spacing: 0px !important;}
h4 { font-size: var(--text-lg); line-height: 1.35; }
h5 { font-size: var(--text-md); line-height: 1.4; }
h6 { font-size: var(--text-base); line-height: 1.5; font-weight: 700; }





h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child) {
    margin-top: 1.5em;
}

p { line-height: 1.6; margin-bottom: 1.15rem; padding-bottom: 0.35rem; }

/* Text Utilities */
.special_amp {
    font-family: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    font-size: inherit !important;
}

b, strong { color: inherit !important; }

.text-blue { color: var(--blue) !important; }
.text-grey { color: var(--grey) !important; }
.text-purple { color: var(--purple) !important; }

/* Link Styles */
a .text-blue,
a.text-blue {
    color: var(--blue) !important;
    transition: var(--transition);
    text-decoration: underline !important;
}

a:hover .text-blue,
a.text-blue:hover {
    color: var(--white) !important;
    transition: var(--transition);
}

/* Font Size Classes */
.text-5xl { font-size: var(--text-5xl) !important; }
.text-4xl { font-size: var(--text-4xl) !important; }
.text-3xl { font-size: var(--text-3xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-md { font-size: var(--text-md) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-sm { font-size: var(--text-sm) !important; }





/* ------------------------------------------------------------
    IMAGE TREATMENT
------------------------------------------------------------ */

.border-radius-top{
	border-top-right-radius: var(--radius-base) !important;
	border-top-left-radius: var(--radius-base) !important;
	overflow: hidden !important;
}


.gradient-bordered {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-base);
    overflow: hidden;
}

.gradient-bordered::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 10px;
    background: linear-gradient(90deg, #553987, #5672A8, #62B7E9, #5672A8, #553987);
    background-size: 400% 100%;
    animation: gradientFlow 30s ease-in-out infinite;
    border-radius: inherit;
    z-index: 0;
    box-sizing: border-box;
}

.gradient-bordered img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
    padding: 18px !important;
    border-radius: var(--radius-md) !important;
}




/* ------------------------------------------------------------
    BUTTONS
------------------------------------------------------------ */
/* Padding Presets */
#top .main_color .avia-button.avia-size-small { padding: 10px 24px !important; }
#top .main_color .avia-button.avia-size-medium { padding: 12px 36px !important; }
#top .main_color .avia-button.avia-size-large { padding: 16px 42px !important; }

/* Standard Gradient Button */
#top .main_color .avia-button:not(.avia-button-fullwidth).avia-color-theme-color {
    position: relative;
    overflow: hidden;
    color: var(--white);
    border: 1px solid var(--blue) !important;
    background: linear-gradient(90deg, #553987, #5672A8, #62B7E9, #5672A8, #553987);
    background-size: 400% 100%;
    animation: gradientFlow 14s ease-in-out infinite;
}

/* Purple Hover Overlay */
#top .main_color .avia-button:not(.avia-button-fullwidth).avia-color-theme-color::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #553987, #553987);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gradient-purple-blue) !important;
}

#top .main_color .avia-button:not(.avia-button-fullwidth).avia-color-theme-color span {
    position: relative;
    z-index: 1;
}

#top .main_color .avia-button:not(.avia-button-fullwidth).avia-color-theme-color:hover::before {
    opacity: 1;
}

/* Fullwidth Button */
.avia-button.avia-button-fullwidth.avia-color-theme-color {
    background: var(--gradient-purple-blue) !important;
}

/* Highlight Button */
#top .main_color .avia-color-theme-color-highlight {
    background: var(--blue) !important;
    transition: var(--transition);
    border: none !important;
}

#top .main_color .avia-color-theme-color-highlight .avia_iconbox_title {
    color: var(--dark-blue);
    transition: var(--transition);
}

#top .main_color .avia-button.avia-color-theme-color-highlight:hover {
    background: var(--purple) !important;
}

#top .main_color .avia-button.avia-color-theme-color-highlight:hover .avia_iconbox_title {
    color: var(--white);
}

/* White Button */
#top .main_color .avia-button.avia-color-white {
    background-color: transparent !important;
    border: 1px solid var(--white);
    transition: var(--transition);
}

#top .main_color .avia-button.avia-color-white .avia_iconbox_title {
    color: var(--white) !important;
    transition: var(--transition);
}

#top .main_color .avia-button.avia-color-white:hover {
    background-color: var(--white) !important;
    border: 1px solid var(--white);
}

#top .main_color .avia-button.avia-color-white:hover .avia_iconbox_title {
    color: var(--purple) !important;
}







/* ------------------------------------------------------------
    ACCORDION
------------------------------------------------------------ */


.togglecontainer .single_toggle{
	overflow: visible !important;
}

.togglecontainer .toggler{
	background-color: var(--light-blue);
	border-radius: var(--radius-sm) !important;
	color: var(--purple);
	font-size: var(--text-md) !important;
	font-weight: 600 !important;
}

.togglecontainer .toggler.activeTitle{
	border-top-right-radius: var(--radius-sm) !important;
	border-top-left-radius: var(--radius-sm) !important;
	border-bottom-right-radius: 0px !important;
	border-bottom-left-radius: 0px !important;
	background-color: var(--white) !important;
	border-bottom: 0px !important;
	box-shadow: var(--shadow-standard) !important;
	margin-bottom: 0px !important;
}


.active_tc.toggle_wrap{
	margin-bottom: 16px !important;
	border-bottom-right-radius: var(--radius-sm) !important;
	border-bottom-left-radius: var(--radius-sm) !important;
	background-color: transparent !important;
	overflow: visible !important;
}

.active_tc.toggle_wrap .toggle_content{
	box-shadow: var(--shadow-standard) !important;
	background-color: var(--white);
	margin-bottom: 16px !important;
	border-bottom-right-radius: var(--radius-sm) !important;
	border-bottom-left-radius: var(--radius-sm) !important;
	font-size: var(--text-base) !important;
}

.togglecontainer .toggle_icon {
    border:1px solid var(--purple);
	opacity: 1 !important;
}

/* Hide default icons */
.togglecontainer .toggle_icon .vert_icon,
.togglecontainer .toggle_icon .hor_icon {
    border-color: var(--purple) !important;
	opacity: 1 !important;
} 



.togglecontainer .toggler:hover{
	background-color: var(--purple) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--white);
	box-shadow: var(--shadow-hover) !important;
}



.togglecontainer .toggler:hover .toggle_icon,
.togglecontainer .toggler:hover .toggle_icon .vert_icon,
.togglecontainer .toggler:hover .toggle_icon .hor_icon{
	border-color: var(--white) !important;
}



.togglecontainer .toggler:hover.activeTitle{
	color: var(--white);
}




/* ------------------------------------------------------------
    CALENDLY
------------------------------------------------------------ */
.calendly-overlay{
    background-color: rgba(0, 6, 37, 0.95) !important;
}











/* ------------------------------------------------------------
    HEADER
------------------------------------------------------------ */
/* 1. Header Transition */


#header {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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


#header.header-scrolled,
#header.header-scrolled.header-scrolled-full {
    transition: var(--transition);
}

#header .main_menu .menu-item .avia-menu-text {
    color: var(--purple);
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    transition: var(--transition);
    text-transform: uppercase;
}



#header .main_menu .menu-item a {
    transition: var(--transition);
}

#header .main_menu .menu-item a:hover {
    transition: var(--transition);
    background-color: var(--blue);
}

#header .main_menu .menu-item a:hover .avia-menu-text {
    color: var(--dark-blue) !important;
    transition: var(--transition-long);
    text-decoration: underline !important; 
}


/* ------------------------------------------------------------
    FOOTER
------------------------------------------------------------ */
#footer .footer-logo { margin-bottom: 16px; }
#footer a, #footer p { color: var(--white); }

#footer h2 { text-transform: inherit !important; padding-bottom: 24px; }
#footer h2 .heading { color: var(--white); font-size: var(--text-md); }

/* Animated Underline */
#footer h2 span { position: relative; display: inline-block; }
#footer h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-draw 600ms ease-out forwards;
}

/* Staggered Delays */
#footer .flex_column:nth-of-type(2) h2 span::after { animation-delay: 200ms; }
#footer .flex_column:nth-of-type(3) h2 span::after { animation-delay: 300ms; }
#footer .flex_column:nth-of-type(4) h2 span::after { animation-delay: 400ms; }

/* Lists */
#footer ul { list-style: none !important; margin-left: 0px !important; }
#footer li { margin-left: 0px !important; color: white; font-size: var(--text-base); }
#footer li::before { margin-left: 0px !important; color: white; font-size: var(--text-base); }

#footer li a { transition: var(--transition); padding-left: 0px; }
#footer li a::before {
    content: url("/wp-content/uploads/arrow-right-blue.svg");
    left: -14px !important;
    position: absolute;
    opacity: 0 !important;
    transition: var(--transition);
}

#footer li a:hover {
    color: var(--blue);
    padding-left: 20px;
    padding-right: 4px !important;
    text-decoration: underline;
}

#footer li a:hover::before {
    left: 0px !important;
    opacity: 1 !important;
}

/* Social Icons */
#footer .social-icons ul { display: flex; flex-direction: row; gap: 16px; }
#footer .social-icons li { padding: 0px; }
#footer .social-icons li .iconlist-timeline { display: none !important; }

#footer .social-icons li .iconlist_icon {
    margin: 0px !important;
    transform: scale(1.15);
    padding-right: 0px !important;
    transition: var(--transition);
}

#footer .social-icons li .iconlist_icon:hover {
    margin: 0px !important;
    transform: scale(1.5) !important;
    background-color: var(--blue);
}

#footer .social-icons li a:hover { padding-left: 0px !important; }
#footer .social-icons li article,
#footer .social-icons li a::before,
#footer .social-icons li a:hover::before {
    display: none !important;
    left: 0px !important;
}




/* ------------------------------------------------------------
    HOMEPAGE HERO
------------------------------------------------------------ */
#homepage-hero .av-section-color-overlay {
    opacity: 1 !important;
    background-color: transparent !important;
    background-image: linear-gradient(
        90deg, 
        rgba(85, 57, 135, 0.40) 2.26%, 
        rgba(0, 6, 37, 0.60) 30.15%, 
        rgba(0, 6, 37, 0.60) 71.98%, 
        rgba(98, 183, 233, 0.40) 95.22%
    ) !important;
    background-size: 400% 100%;
    animation: gradientFlow 60s ease-in-out infinite;
}

#homepage-hero h1 { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important; font-size: var(--text-5xl) !important; margin-bottom: 8px !important; }
#homepage-hero h1 strong {
  font-weight: 800 !important;
  position: relative;
  background-image: none;
  background-color: transparent;
}

#homepage-hero h1 strong::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16%; 
  width: 100%;
  height: 30%;
  
  /* 1. The SVG Shape (Mask) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='247' height='22' fill='none'%3E%3Cmask id='a' width='246' height='23' x='0' y='1' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23D9D9D9' d='M0 1h246v23H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%2300a661' d='M.225 13.987c40.77-3.247 81.218-6.304 122.486-5.61 40.217.68 80.07 3.493 119.823 8.284 4.828.577 4.966-4.727.193-5.301-40.597-4.886-82.029-7.082-123.059-6.436-39.896.627-80.713 2.548-119.53 8.822-.233.04-.132.263.087.25v-.009z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='247' height='22' fill='none'%3E%3Cmask id='a' width='246' height='23' x='0' y='1' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23D9D9D9' d='M0 1h246v23H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%2300a661' d='M.225 13.987c40.77-3.247 81.218-6.304 122.486-5.61 40.217.68 80.07 3.493 119.823 8.284 4.828.577 4.966-4.727.193-5.301-40.597-4.886-82.029-7.082-123.059-6.436-39.896.627-80.713 2.548-119.53 8.822-.233.04-.132.263.087.25v-.009z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  /* 2. The Color (Gradient) */
  background: linear-gradient(90deg, #553987 0%, #5672A8 50%, #62B7E9 100%);

  /* 3. The Animation (Reveal) */
  /* Initially hidden by clipping everything from the right */
  clip-path: inset(0 100% 0 0);
  /* Animate to full view */
  animation: drawLine 1.5s ease-out 300ms forwards;
}

/* 4. Keyframes for the drawing effect */
@keyframes drawLine {
  to {
    clip-path: inset(0 0 0 0);
  }
}
  

#homepage-hero p { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important; font-size: var(--text-xl) !important; }


/* Container */
.testimonials-program-slider {
    overflow: hidden;
    min-height: 250px;
    display: block;
	mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    /* Swiper adds 'swiper' class automatically, ensuring position relative */
}

/* Linear Animation Override for the Wrapper */
.testimonials-program-slider .swiper-wrapper {
    transition-timing-function: linear; /* Essential for ticker effect */
}



/* Slide Styles */
.testimonial-slide {
    display: flex;
    height: auto; 
    margin-right: 24px;
    
    /* Ensure sizing logic works */
    box-sizing: border-box; 
    flex-shrink: 0; /* Prevents squishing */
    
    /* Reset text direction to Left-to-Right for content legibility */
    direction: ltr; 
    text-align: left;
}


/* Internal Layout (Flexbox) */
.testimonial-slide .testimonial-container {
    height: 100%;
    width: 100%;
	padding-top: 50px;
}

.testimonial-slide .testimonial-flex {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-slide .testimonial-wrapper {
    height: 100%;
    display: flex;
    /* Adjust internal layout as needed */
}

.testimonial-slide .testimonial-name {
    margin-top: auto;
}

/* Optional helper classes */
.testimonial-slide.testimonial-narrow { max-width: 420px !important; width: 100%; }
.testimonial-slide.testimonial-wide   { max-width: 840px !important; width: 100%; }

/* Triggers on screens smaller than 989px (Enfold tablet breakpoint) */
@media only screen and (max-width: 989px) {
	.testimonial-slide.testimonial-wide   { max-width: 460px !important; width: 100%; }
}

@media only screen and (max-width: 767px) {
	.testimonial-slide.testimonial-narrow { max-width: 320px !important; width: 100%; }
}








/* ------------------------------------------------------------
    ABOUT / PLANS / SECTIONS
------------------------------------------------------------ */


.white-overlay-panel .entry-content-wrapper {
    background: var(--white) !important;
    padding: 50px !important;
    border-radius: var(--radius-md) !important;
    margin-top: -250px !important;
}

/* SECTION - PACKAGE - GRAPHIC */
.package-graphic{
	margin-bottom: -8px !important;
}


.package-graphic .av-image-hotspot-1 .av-image-hotspot_inner{
    color: var(--dark-blue) !important;
}

.package-graphic .av-image-hotspot-2 .av-image-hotspot_inner,
.package-graphic .av-image-hotspot-3 .av-image-hotspot_inner,
.package-graphic .av-image-hotspot-4 .av-image-hotspot_inner,
.package-graphic .av-image-hotspot-5 .av-image-hotspot_inner,
.package-graphic .av-image-hotspot-6 .av-image-hotspot_inner{
	content: '' !important;
    color: #ffffff;
    position: relative !important;
}

.package-graphic .av-image-hotspot-2 .av-image-hotspot_inner::before,
.package-graphic .av-image-hotspot-3 .av-image-hotspot_inner::before,
.package-graphic .av-image-hotspot-4 .av-image-hotspot_inner::before,
.package-graphic .av-image-hotspot-5 .av-image-hotspot_inner::before,
.package-graphic .av-image-hotspot-6 .av-image-hotspot_inner::before{
    width: 100%;
    height: 100%;
    position: absolute !important;
    left: 0;
    color: var(--dark-blue);
}

.package-graphic .av-image-hotspot-2 .av-image-hotspot_inner::before{
	content: '3' !important;
}

.package-graphic .av-image-hotspot-3 .av-image-hotspot_inner::before{
	content: '5' !important;
}

.package-graphic .av-image-hotspot-4 .av-image-hotspot_inner::before{
	content: '7' !important;
}

.package-graphic .av-image-hotspot-5 .av-image-hotspot_inner::before{
	content: '10' !important;
}

.package-graphic .av-image-hotspot-6 .av-image-hotspot_inner::before{
	content: '15' !important;
}






/* SECTION - PACKAGE - TEXT */
.border-top-white{
	border-top: 2px solid var(--white) !important;
}


/* PANEL - PRICING */

.pricing-panel{
	box-shadow: var(--shadow-standard);
	padding-top: 42px !important;
}

.pricing-panel::after{
	height: 16px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	content: '';
	visibility: visible !important;
	background: linear-gradient(90deg, #553987, #5672A8, #62B7E9, #5672A8, #553987);
    background-size: 400% 100%;
    animation: gradientFlow 60s ease-in-out infinite;
    border-radius: inherit;
    z-index: 0;
    box-sizing: border-box;
}


.pricing-panel .pricing-panel-price{
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	gap: 16px !important;
	padding-bottom: 16px !important;
}

.pricing-panel h3{
	font-size: var(--text-2xl) !important;
	font-weight: 700 !important;
	color: var(--purple) !important;
	margin-bottom: 24px !important;
}


.pricing-panel .pricing-panel-price h4{
	font-weight: 700 !important;
	color: var(--blue);
	margin: 0px !important;
}

.pricing-panel .pricing-panel-price p{
	font-size: var(--text-md) !important;
	font-weight: 500 !important;
	margin: 0px !important;
	padding: 0px !important;
}






/* =======================================================
   1. VISUAL STYLING (The "Tile" Look) 
   ======================================================= */
.custom-table {
	scrollbar-width: none !important;
	background-color: var(--white) !important;
}

.custom-table::-webkit-scrollbar {
	display: none !important; 
}


/* Remove default borders and create the "tile" spacing */
.custom-table .avia-data-table {
    border-collapse: separate !important;
    border-spacing: 3px !important; /* The white gaps between cells */
    border: none !important;
}

/* --- General Cell Styling (Body) --- */
.custom-table th, 
.custom-table td {
    color: var(--grey);                 /* Text Color */
    border: 2px solid var(--white) !important;        /* Remove Enfold borders */
    padding: 18px 15px !important;  /* Comfortable spacing */
    vertical-align: middle;
    font-size: 15px;
    font-weight: 600;
}

/* --- Header Row (Dark Blue) --- */
.custom-table .avia-heading-row th {
    background-color: var(--secondary-blue);      /* Dark Header Blue */
    color: var(--white) !important;      /* White Text */
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
    border-radius: 0;
}

/* --- Top Left Corner Exception --- */
/* Forces the very first cell to be white with dark text */
.custom-table .avia-heading-row th:first-child {
    background-color: var(--white) !important;
    color: var(--grey) !important;
    text-align: left;
    font-weight: 800;
	font-size: var(--text-md) !important;
}

/* --- Description Column (First Column) styling --- */
.custom-table tr:not(.avia-heading-row) th.avia-desc-col {
    text-align: left !important;
    color: var(--grey);
	text-transform: inherit !important;
	overflow: visible !important;
	background-color: var(--light-blue);
	letter-spacing: inherit !important;
	font-size: var(--text-base) !important;
	font-weight: 500 !important;
}

/* --- Data Columns styling --- */
.custom-table td {
	text-align: center !important;
    font-size: 18px; /* Larger checks/numbers */
	background-color: var(--secondary-white);
}


/* =======================================================
   2. DESKTOP STRUCTURE & LAYOUT 
   ======================================================= */

.custom-table .avia-data-table {
    table-layout: fixed !important; /* Crucial for equal width columns */
    width: 100%;
    min-width: 1000px; /* Prevents squishing on desktop */
}



/* Force the First Column to be 300px */
.custom-table .avia-desc-col,
.custom-table .avia-heading-row th:first-child {
    width: 300px !important;
    min-width: 300px !important;
    box-sizing: border-box;
}

/* All other columns share remaining space equally */
.custom-table td, 
.custom-table th:not(:first-child) {
    width: auto; 
}




/* =======================================================
   3. MOBILE/TABLET RESPONSIVENESS (Sticky Column)
   ======================================================= */

/* Triggers on screens smaller than 989px (Enfold tablet breakpoint) */
@media only screen and (max-width: 989px) {
    
    /* 1. Make the Wrapper Scrollable */
    .custom-table {
        overflow-x: auto !important; /* Enables Horizontal Scroll */
        display: block; 
        width: 100%;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
		scrollbar-width: none !important;
		/* Start with black (visible) immediately at 0% */
		-webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
		mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);

		/* Your existing scrollbar hiding code */
		-ms-overflow-style: none !important;
		scrollbar-width: none !important;
		padding-right: 60px !important;
    }

    /* 2. Force Table Width to Trigger Scroll */
    .custom-table .avia-data-table {
        width: 1200px !important; /* Wider than screen = scrollbar appears */
    }

    /* 3. Sticky Header Cell (Top Left) */
    .custom-table .avia-heading-row th:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #ffffff !important;
        /* Add a shadow so we see where it ends */
        box-shadow: 2px 0 5px rgba(0,0,0,0.1); 
        border-right: 1px solid #ddd !important;
    }

    /* 4. Sticky Body Cells (Left Column) */
    .custom-table tr th.avia-desc-col {
        position: sticky;
		white-space: normal !important;
        left: 0;
        z-index: 10;
        /* Add a shadow so we see where it ends */
        border-right: 1px solid #cbd6dd !important;
		box-shadow: var(--shadow-standard);
    }

	/* Force the First Column to be 300px */
	.custom-table .avia-desc-col,
	.custom-table .avia-heading-row th:first-child {
		width: 200px !important;
		min-width: 200px !important;
		box-sizing: border-box;
	}

}






/* ------------------------------------------------------------
    TESTIMONIALS
------------------------------------------------------------ */
.plans-hero .template-page,
.testimonials-hero .template-page {
	padding-bottom: 0px !important;
}

/* Menu Container */
#testimonials-menu {
    border-top: none !important;
    border-bottom: none !important;
    transition: var(--transition);
}

#header.header-scrolled,
#testimonials-menu.custom-is-sticky {
    border-top: none !important;
    border-bottom: none !important;
    transition: var(--transition);
    box-shadow: 0 48px 14px 0 rgba(0, 0, 0, 0.00), 0 31px 12px 0 rgba(0, 0, 0, 0.01), 0 17px 10px 0 rgba(0, 0, 0, 0.02), 0 8px 8px 0 rgba(0, 0, 0, 0.03), 0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

#testimonials-menu .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* "FILTER BY" Text */
#testimonials-menu .av-subnav-menu::before {
    content: 'FILTER BY';
    font-weight: 700;
    color: var(--grey);
    margin-right: 30px;
    font-size: 14px;
    display: block;
    align-self: center;
    position: absolute !important;
    left: 60px;
    top: 24px !important;
}

#testimonials-menu.custom-is-sticky .av-subnav-menu::before {
	opacity: 0 !important;
	transition: var(--transition);
	top: -24px !important;
}

#testimonials-menu .av-subnav-menu {
    display: flex;
    align-items: flex-end;
    float: none !important;
    margin: 0 !important;
    width: 100%;
    gap: 24px !important;
    justify-content: center;
}

#testimonials-menu .av-subnav-menu > li {
    float: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    padding-top: 18px !important;
}

#testimonials-menu .av-subnav-menu > li > a {
    background: transparent !important;
    padding: 10px 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 14px;
}

/* Icons */
#testimonials-menu .av-subnav-menu > li > a::before {
    content: '';
    display: block;
    width: 34px;
    height: 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 10px;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

/* Icon Assignments */
#testimonials-menu .menu-item-top-level-1 a::before { background-image: url('/wp-content/uploads/AdmissionsConsultants-icon-ivy-league.svg'); }
#testimonials-menu .menu-item-top-level-2 a::before { background-image: url('/wp-content/uploads/AdmissionsConsultants-icon-graduate-school.svg'); }
#testimonials-menu .menu-item-top-level-3 a::before { background-image: url('/wp-content/uploads/AdmissionsConsultants-icon-mba-school.svg'); }
#testimonials-menu .menu-item-top-level-4 a::before { background-image: url('/wp-content/uploads/AdmissionsConsultants-icon-law-school.svg'); }
#testimonials-menu .menu-item-top-level-5 a::before { background-image: url('/wp-content/uploads/AdmissionsConsultants-icon-med-school.svg'); }

/* Text Styling */
#testimonials-menu .avia-bullet { display: none !important; }

#testimonials-menu .avia-menu-text {
    font-size: var(--text-base) !important;
    color: var(--blue) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline !important;
    transition: var(--transition);
}

#testimonials-menu .avia-menu-text:hover {
    color: var(--purple) !important;
}

/* Sticky State (JS Trigger) */

#testimonials-menu.custom-is-sticky  .av-subnav-menu > li {
	padding: 0px !important;
}
#testimonials-menu.custom-is-sticky .av-subnav-menu > li > a::before {
	height: 0;
	opacity: 0;
	margin-bottom: 0;
	transition: var(--transition);
}

#testimonials-menu.custom-is-sticky .av-subnav-menu > li > a { padding: 0px 0px 8px 0px !important; }

/* Grid & Cards */
.testimonials-section {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
}

.testimonials-opener {
    background-color: var(--purple);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    min-height: 250px;
}

.opener-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.opener-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.opener-icon { margin-bottom: 20px; }
.opener-icon svg path { fill: var(--white) !important; }

.opener-title {
    color: var(--white) !important;
    font-size: var(--text-2xl);
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Testimonial Cards */
.testimonial-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px 40px;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    display: flex !important;
    align-items: center !important;
}

.testimonial-container:hover { transform: translateY(-5px); }

.testimonial-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    margin: 0;
    height: 100%;
}

.testimonial-icon-container { flex-shrink: 0; width: 50px; padding-top: 5px; }
.testimonial-icon-container svg { width: 100%; height: auto; display: block; }

.testimonials-content { flex-grow: 1; display: flex; flex-direction: column; }
.testimonials-content blockquote {
    border: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: normal;
    background: transparent;
}

.testimonials-content blockquote p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #553987;
    font-weight: 500;
    font-size: var(--text-base);
}

.testimonial-name {
    display: block;
    margin-top: auto;
    font-size: var(--text-sm);
    color: var(--grey);
    font-weight: 400;
}





/* --------------------------------------------------------------------------
    TEAM LISTING -- /ABOUT
-------------------------------------------------------------------------- */
.sptp-name-overlayed-img .sptp-member .sptp-name{
    position: absolute !important;
    bottom: 0 !important;
    display: flex !important;
	background: var(--gradient-purple-blue) !important;
	font-size: var(--text-xs) !important;
	padding: 12px 24px !important;
	border-radius: 0px 0px 0px var(--radius-base) !important;
	transition: var(--transition);
}

.sptp-name-overlayed-img .sptp-member .sptp-name a{
	color: var(--white) !important;
}


.sptp-name-overlayed-img .sptp-member:hover .sptp-name{
	bottom: 8px !important;
	transition: var(--transition);
}



/* --------------------------------------------------------------------------
    TEAM LISTING -- /TEAM
-------------------------------------------------------------------------- */


.sptp-member {
	transition: var(--transition);
	padding-top: 16px !important;
}

.sptp-member .image-overlay {
	display: none !important;
}


.sptp-member .sptp-member-name{
	position: relative !important;
	padding-top: 16px;
	text-align: left;
}

.sptp-member h2 {
	font-size: 22px !important;
	padding: 16px 0px !important;
	text-align: left !important;
	color: var(--purple) !important;
	transition: var(--transition);
	text-transform: uppercase !important;
	font-weight: 600 !important;
}

.sptp-member h2 a {
	color: var(--purple) !important;
	transition: var(--transition);
}

.sptp-member,
.sptp-member .sptp-member-avatar{
	overflow: visible !important;
	transition: var(--transition);
	background: transparent !important;
	border-radius: var(--radius-base);
}

.sptp-member .sptp-member-avatar-img{
	border-radius: var(--radius-base) !important;
	transition: var(--transition);
	overflow: hidden !important;
}

.sptp-member .sptp-member-avatar img{
	transform: scale(1) !important;
	transition: var(--transition);
}

.sptp-member .sptp-member-name{
	padding-top: 0px !important;
	transition: var(--transition);
}

.sptp-member:hover {
	transition: var(--transition);
	padding-top: 8px !important;
}

.sptp-member:hover .sptp-member-name{
	transition: var(--transition);
	padding-top: 8px !important;
}

.sptp-member:hover h2,
.sptp-member:hover h2 a {
	transition: var(--transition);
	color: var(--blue) !important;
	text-decoration: underline;
}

.sptp-member:hover .sptp-member-avatar{
	box-shadow: var(--shadow-hover) !important;
	transition: var(--transition);
}


.sptp-member .sptp-member-avatar:hover img,
.sptp-member:hover .sptp-member-avatar img{
	transform: scale(1.1) !important;
	transition: var(--transition);
}









/* --------------------------------------------------------------------------
    TEAM  PAGE
-------------------------------------------------------------------------- */

/* --- 0. Team Navigation - Left - Right Overlay Button --- */
#top.single-sptp_member .avia-post-nav{
	background-color: var(--dark-blue) !important;
	opacity: 0.1 !important;
	transition: var(--transition);
	border-radius: var(--radius-base) 0px 0px var(--radius-base) !important;
}

#top.single-sptp_member .avia-post-nav.avia-post-prev{
	background-color: var(--dark-blue) !important;
	opacity: 0.1 !important;
	transition: var(--transition);
	border-radius: 0px var(--radius-base) var(--radius-base) 0px !important;
}

#top.single-sptp_member .avia-post-nav svg{
	fill: var(--blue) !important;
}

#top.single-sptp_member .avia-post-nav .entry-title{
	font-size: var(--text-base) !important;
	color: var(--blue) !important;
}


#top.single-sptp_member .avia-post-nav:hover{
	background-color: var(--dark-blue) !important;
	box-shadow: var(--shadow-standard) !important;
	transition: var(--transition) !important;
	opacity: 1 !important;
}




#top.single-sptp_member #av_section_1 .avia-image-overlay-wrap {
    padding: 16px; 
    background: linear-gradient(135deg, #583387 0%, #4FA5D8 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-clip: padding-box;
}

#top.single-sptp_member #av_section_1 .avia-image-overlay-wrap img {
    display: block;
    border-radius: 16px;
    width: 100%;
    height: auto;
}

/* --- 3. Right Column (Content) --- */
.sptp-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    padding-top: 40px;
	text-align: left !important; 
}

/* Back Link */
.custom-team-back-link {
    color: #4FA5D8;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
	transition: var(--transition);
}
.custom-team-back-link:hover {
    text-decoration: underline;
    color: var(--purple);
	transition: var(--transition);
}

/* Name/Title */
#top.single-sptp_member #av_section_1 h1 {
    color: var(--purple) !important;
    font-weight: 800;
    margin: 0px !important;
    line-height: 1.2 !important;
	text-align: left !important;
}


/* Description Text */
#top.single-sptp_member #av_section_1 p {
	padding-top: 8px !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey);
}









/* ------------------------------------------------------------
    BLOG PAGE
------------------------------------------------------------ */
.comment-entry.post-entry,
body.single-post #main article footer,
body.single-post #main article .post-meta-infos .text-sep,
body.single-post #main article .post-meta-infos .blog-author,
body.single-post #main .post_delimiter{
    	display: none !important;
}


/* --- 0. Team Navigation - Left - Right Overlay Button --- */
body.single-post .avia-post-nav{
	background-color: var(--dark-blue) !important;
	opacity: 0.1 !important;
	transition: var(--transition);
	border-radius: var(--radius-base) 0px 0px var(--radius-base) !important;
}

body.single-post .avia-post-nav.avia-post-prev{
	background-color: var(--dark-blue) !important;
	opacity: 0.1 !important;
	transition: var(--transition);
	border-radius: 0px var(--radius-base) var(--radius-base) 0px !important;
}

body.single-post .avia-post-nav svg{
	fill: var(--blue) !important;
}

body.single-post .avia-post-nav .entry-title{
	font-size: var(--text-sm) !important;
	color: var(--blue) !important;
}


body.single-post .avia-post-nav:hover{
	background-color: var(--dark-blue) !important;
	box-shadow: var(--shadow-standard) !important;
	transition: var(--transition) !important;
	opacity: 1 !important;
}

body.single-post #main .container_wrap{
    	position: relative !important;
}

body.single-post #main .container_wrap_first::before {
    background: var(--gradient-purple-blue);
    position: absolute;
    top: 0;
	height: 140px;
    left: 0;
    content: '';
    width: 100%;
	  background: linear-gradient(
    -45deg,
    #553987,
    #5672A8,
    #62B7E9,
  );
  background-size: 300% 300%;
  animation: gradientAnimation 15s ease-in-out infinite;
}

body.single-post #main .template-single-blog  .entry-content-wrapper{
    background: var(--white) !important;
    border-radius: var(--radius-base) !important;
    padding: 36px !important;
}

body.single-post #main .template-single-blog .entry-content-wrapper h2,
body.single-post #main .template-single-blog .entry-content-wrapper h3,
body.single-post #main .template-single-blog .entry-content-wrapper h4,
body.single-post #main .template-single-blog .entry-content-wrapper h5{
    text-align: left !important;
}

body.single-post #main .template-single-blog .entry-content-wrapper p{
    text-align: left !important;
    font-size: var(--text-base) !important;
}


    .blog-listing .slide-entry-wrap{
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 24px !important;
    }

    .blog-listing .slide-entry-wrap article{
        margin-left: 0px !important;
        width: 100% !important;
    }







/* ------------------------------------------------------------
    INSIGHTS
------------------------------------------------------------ */

    .blog-listing,
    .insight-listing,
    .avia-content-slider-inner {
      overflow: visible !important;
    }

    .blog-listing .slide-image,
    .blog-listing .slide-meta-del,
    .blog-listing .slide-meta-comments,
    .blog-listing .entry-footer,
    .insight-listing article .image-overlay,
    .insight-listing article::before {
        display: none !important;
    }


    .blog-listing article{
        border: 1px solid var(--light-blue) !important;
    }

    .blog-listing article,
    .insight-listing article{
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 24px;
        background-color: var(--white);
        border-radius: var(--radius-base);
        transition: var(--transition);
    }

    .insight-listing article img{
        width: 100% !important;
        height: auto !important;
        background-size: cover !important;
        border-radius: var(--radius-base);
        transition: var(--transition);
        transform: scale(1);
    }

    .blog-listing article .slide-entry-title,
    .insight-listing article .slide-entry-title{
        margin-bottom: 16px;
    }

    .blog-listing article .slide-entry-title a,
    .insight-listing article .slide-entry-title a{
        font-size: var(--text-lg) !important;
        color: var(--purple) !important;
    }

    .blog-listing article .read-more-link,
    .insight-listing article .read-more-link{
        margin-top: 8px;
    }


    .blog-listing article:hover,
    .insight-listing article:hover{
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        cursor: pointer !important;
    }

    .insight-listing article:hover img{
        transition: var(--transition);
        transform: scale(1.05);
    }

    .blog-listing .pagination .current,
    .insight-listing .pagination .current{
        background-color: var(--light-grey) !important;
        color: var(--white) !important;
    }

    .blog-listing .pagination .inactive,
    .insight-listing .pagination .inactive{
        background-color: var(--purple) !important;
        color: var(--white) !important;
    }

    .blog-listing .pagination .inactive:hover,
    .insight-listing .pagination .inactive:hover{
        background-color: var(--blue) !important;
        color: var(--dark-blue) !important;
    }



/* ------------------------------------------------------------
    MEDIA QUERIES (DESKTOP GRID)
------------------------------------------------------------ */
@media only screen and (min-width: 1100px) {
    .testimonials-section { grid-template-columns: repeat(3, 1fr); }
    .testimonials-section > .testimonials-opener:nth-child(1) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(2) { grid-column: span 2; }
    .testimonials-section > .testimonial-container:nth-child(3) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(4) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(5) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(6) { grid-column: span 2; }
    .testimonials-section > .testimonial-container:nth-child(7) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(8) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(9) { grid-column: span 2; }
    .testimonials-section > .testimonial-container:nth-child(10) { grid-column: span 1; }
    .testimonials-section > .testimonial-container:nth-child(11) { grid-column: span 1; }
}

@media only screen and (min-width: 769px) and (max-width: 1099px) {
    .testimonials-section { grid-template-columns: repeat(2, 1fr); }
    .testimonials-section > .testimonials-opener:nth-child(1) { grid-column: span 1; }
    /* Grid span logic simplified to 1 for tablet unless specified otherwise */
    .testimonials-section > .testimonial-container { grid-column: span 1; }
}



/* ------------------------------------------------------------
    MEDIA QUERIES (RESPONSIVE OVERRIDES)
------------------------------------------------------------ */

/* Small Desktop / Large Tablet */
@media only screen and (max-width: 1200px) {
    #header .main_menu .menu-item .avia-menu-text { font-size: var(--text-xs) !important; }
}

/* Tablet / Burger Menu Trigger */
@media only screen and (max-width: 1177px) {
    nav.main_menu { display: block !important; }
    #avia-menu .menu-item { display: none !important; }
    .av-burger-menu-main.menu-item-avia-special { display: block !important; }

	#top #av-burger-menu-ul{
		vertical-align: top !important;
		padding-top: 140px !important;
	}

	.html_av-overlay-full #top #wrap_all #av-burger-menu-ul li{
		line-height: 1.5 !important;
	}

    #av-burger-menu-ul li a {
		font-size: var(--text-2xl) !important;
		text-align: right;
		padding-right: 60px;
		color: var(--white) !important;
		transition: var(--transition);
	}

	#av-burger-menu-ul li a:hover {
		color: var(--blue) !important;
		transition: var(--transition);
		text-decoration: underline !important;
	}

    #av-burger-menu-ul li.current_page_item a {
		text-align: right;
		padding-right: 60px;
		color: var(--grey) !important;
		transition: var(--transition);
		text-decoration: underline !important;
	}

    .av-burger-overlay-bg {
		background-color: var(--dark-blue) !important;
		opacity: 0.96 !important;
	}

	html.av-burger-overlay-active body {
		overflow: hidden !important;
	}

	html.av-burger-overlay-active #main {
		filter: blur(4px) !important;
	}


	#av-burger-menu-ul::after{
		height: 40px;
		width: 100%;
		position: absolute;
		bottom: 0;
		left: 0;
		content: '';
		visibility: visible !important;
		background: linear-gradient(90deg, #553987, #5672A8, #62B7E9, #5672A8, #553987);
		background-size: 400% 100%;
		animation: gradientFlow 60s ease-in-out infinite;
		border-radius: inherit;
		z-index: 0;
		box-sizing: border-box;
	}

}

/* Mobile Landscape / Small Tablet */
@media only screen and (max-width: 1099px) {
    .bottom-gradient-bar::before { height: 235px; }
    .testimonials-hero .avia-builder-el-last { margin-bottom: 0px !important; }

    /* Scrollable Menu */
    #testimonials-menu .container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 16px 0px !important;
        mask-image: linear-gradient(to right, transparent, black 10%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 95%, transparent);
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    #testimonials-menu .container::-webkit-scrollbar { display: none !important; }

    #testimonials-menu .av-subnav-menu {
        flex-wrap: nowrap !important;
        width: max-content;
        gap: 30px !important;
        padding: 24px 36px 12px 36px !important;
    }

    #testimonials-menu .av-subnav-menu::before { display: none !important; }
    #testimonials-menu .av-subnav-menu > li { 
		padding: 0px !important; 
		margin: 0px !important;
	}

    #testimonials-menu .av-subnav-menu > li > a {
        flex-direction: row;
        align-items: center;
        position: relative;
        column-gap: 8px !important;
        padding: 0px !important;
    }

    #testimonials-menu .av-subnav-menu > li > a::before { margin-bottom: 0px !important; }
    #testimonials-menu .av-subnav-menu .avia-menu-text { white-space: nowrap; }
}


@media only screen and (min-width: 990px) {
	.lg-hide{
		display: none !important;
	}

}


@media only screen and (max-width: 989px) {


	.responsive.html_mobile_menu_tablet #top #wrap_all #header{
		position: fixed !important;
	}
	.responsive.html_mobile_menu_tablet.html_header_top.html_header_sticky #top #wrap_all #main{
		padding-top: 88px !important;
	}
    
    .flex-row-justify-between{
        display: flex !important;
        flex-direction: column !important;
        justify-content: start !important;
        gap: 24px !important;
    }

    .sm-hide{
        display: none !important;
    }
}


/* Mobile Portrait */
@media only screen and (max-width: 767px) {
    #header_main .logo img { max-height: 60px !important; }
    
    /* Footer Spacing */
    #footer .flex_column:nth-of-type(3) { margin-bottom: 40px; }

    .bottom-gradient-bar::before { height: 175px; }
    .white-overlay-panel .entry-content-wrapper {
        padding: 36px !important;
        border-radius: var(--radius-base) !important;
        margin-top: -230px !important;
    }

    /* Testimonials Mobile */
    .testimonials-section { grid-template-columns: 1fr; gap: 20px; }
    .testimonials-opener { display: flex; grid-column: span 1 !important; min-height: 200px; }
    .testimonials-section > .testimonial-container { grid-column: span 1 !important; }
    
    .testimonial-wrapper { gap: 15px; }
    .testimonial-container { padding: 20px 25px; }
}