/* General Section Styles */
    .section {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .section-inner.overlay-bg {
        background: rgba(22, 57, 99, 0.7);
        padding: 3rem 0;
        border-radius: 8px;
    }

    /* Headings */


    /* Remove inline heading styling */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-family: gelasio, serif;
        font-size: 2.2rem;
        /* Big enough for a hero, adjust as needed */
        color: #fff;
        letter-spacing: 2px;
        text-shadow: 1px 1px 1px #000000;
        margin: 0 0 0.5em 0;
        /* Remove auto, leave a bit of bottom margin */
        text-align: center;
        /* Center the text horizontally */
        white-space: nowrap;
    }

    .section-subtitle-2 {
        color: #6f6f71;
        font-size: 23px;
        font-weight: light;
        font: roboto, helvetica, arial;
        line-height: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .section-display-5 {
        font-family: roboto, helvetica, arial;
        padding-right: 15px;
        padding-top: 15px;
        color: #6f6f71;
        font-size: 18px;
        line-height: 26px;
        text-align: left;
    }

    .section-display-6 {
        font-family: roboto, helvetica, arial;
        padding-right: 15px;
        padding-top: 15px;
        color: #6f6f71;
        font-size: 20px;
        line-height: 35px;
        text-align: left;
    }

    /* Gradient header */
    .ms-header {
        font-family: 'Roboto', Helvetica, Arial, sans-serif;
        font-weight: 300;
        width: 100vw;
        background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(144, 185, 223, 1));
    }

    .ms-header__title {
        width: 100%;
        padding-left: 15px;
        text-align: left;
        font-size: 3.3rem;
        color: #163963;
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    }

    /* Text and Paragraph Styles */
    .text-white {
        color: #fff !important;
    }

    .text-light {
        color: #90B9DF !important;
    }

    .text-muted {
        color: #505050 !important;
    }

    .text-left {
        text-align: left !important;
    }

    .text-center {
        text-align: center !important;
    }

    .full-cta {
        position: relative;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: center;
        justify-content: center;
        min-height: 300px;
        padding: 1rem 0;
        width: 100%;
    }

    /* CTA Buttons */
    .btn,
    button,
    .fill,
    .light {
        display: inline-block;
        border: none;
        border-radius: 4px;
        padding: 7px 20px;
        font-size: 19px;
        font-family: 'gelasio';
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        background: #163963;
        color: #fff;
        letter-spacing: 1.1px;
        line-height: 31px;
        width: 100%;
        margin: 0.5rem 0;
    }

    .light {
        background: #163963;
        color: #ffff;
        border: 1px solid #fff;
    }

    .fill:hover,
    .btn:hover {
        background: #34648e;
        color: #fff;
    }

    .light:hover,
    .btn:hover {
        background: #34648e;
        color: #163963;
    }

    /* Image Styles */

    .shadow-sm {
        box-shadow: 0 2px 8px rgba(37, 37, 37, 0.18) !important;
    }



    .img-responsive {
        width: 100%;
        height: auto;
    }

    /* Profile Captions */
    
        .profile-img {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .profile-caption {
        color: #505050;
        font-size: 0.85rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    /* Reset and base styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Roboto', Helvetica, Arial, sans-serif;
        background-color: #f9fafb;
        line-height: 1.6;
    }

    /* Section container */
    .quote-section {
        position: relative;
        padding: 5rem 0;
    }

    .quote-wrapper {
        max-width: 1536px;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(50px);
        animation: fadeInUp 1s ease-out forwards;
    }

    /* Main quote card */
    .quote-card {
        position: relative;
        overflow: hidden;
        border-radius: 24px;
        border: 2px solid #163963;
        cursor: pointer;
        transition: all 0.5s ease-out;
        box-shadow: 0 10px 25px rgba(22, 57, 99, 0.1);
    }

    .quote-card:hover {
        transform: scale(1.01);
        border-color: #34648e;
        box-shadow: 0 25px 60px -12px rgba(22, 57, 99, 0.3);
    }

    /* Background image */
    .background-image {
        position: absolute;
        inset: 0;
        background-image: url('https://brownadvisoryd8preprod.prod.acquia-sites.com/sites/default/files/Copy%20of%20V3%20Eliza%20Erikson%20220x360.png');
        /* Replace with your actual image path */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transition: transform 0.8s ease-out;
    }

    .background-image-2 {
        position: absolute;
        inset: 0;
        background-image: url('https://www.brownadvisory.com/sites/default/files/Dune-thorne-pull-quote-bg-1600x900.png');
        /* Replace with your actual image path */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transition: transform 0.8s ease-out;
    }

    .quote-card:hover .background-image {
        transform: scale(1.05);
    }

    /* Overlay layers */
    .overlay-base {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    }

    .overlay-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
        opacity: 0.8;
        transition: opacity 0.5s ease;
    }

    .quote-card:hover .overlay-gradient {
        opacity: 0.9;
    }

    .overlay-color {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(30, 58, 138, 0.2) 0%, transparent 50%, rgba(88, 28, 135, 0.2) 100%);
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .quote-card:hover .overlay-color {
        opacity: 1;
    }

    /* Content overlay */
    .content-overlay {
        position: relative;
        z-index: 10;
        padding: 2rem;
        min-height: 500px;
        display: flex;
        align-items: center;
    }

    @media (min-width: 768px) {
        .content-overlay {
            padding: 3rem;
        }
    }

    @media (min-width: 1024px) {
        .content-overlay {
            padding: 4rem;
        }
    }

    .content-wrapper {
        width: 100%;
    }

    /* Floating decorative elements */
    .floating-sparkles {
        position: absolute;
        top: 2rem;
        right: 2rem;
        opacity: 0.2;
        color: #90B9DF;
        animation: sparkleRotate 20s linear infinite, sparkleScale 4s ease-in-out infinite;
    }

    .floating-circles {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        opacity: 0.15;
        color: #90B9DF;
        animation: circleRotate 25s linear infinite, circleFloat 3.5s ease-in-out infinite;
    }

    .circle-outer {
        width: 4rem;
        height: 4rem;
        border: 2px solid currentColor;
        border-radius: 50%;
        position: relative;
    }

    .circle-middle {
        position: absolute;
        inset: 0.75rem;
        border: 1px solid currentColor;
        border-radius: 50%;
    }

    .circle-inner {
        position: absolute;
        inset: 1.5rem;
        border: 1px solid currentColor;
        border-radius: 50%;
    }

    /* Glass card */
    .glass-card-wrapper {
        position: relative;
        max-width: 1024px;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInContent 0.8s ease-out 0.3s forwards;
    }

    .glass-card {
        backdrop-filter: blur(16px);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        position: relative;
        transition: all 0.4s ease;
    }

    @media (min-width: 768px) {
        .glass-card {
            padding: 2.5rem;
        }
    }

    .glass-card:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px);
    }

    /* Animated background pattern inside glass card */
    .glass-bg-pattern {
        position: absolute;
        inset: 0;
        opacity: 0.5;
        border-radius: 16px;
        overflow: hidden;
        background:
            radial-gradient(circle at 20% 30%, rgba(144, 185, 223, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(22, 57, 99, 0.2) 0%, transparent 50%);
        background-size: 100% 100%;
        animation: patternMove 10s ease-in-out infinite alternate;
    }

    /* Quote content */
    .quote-content {
        position: relative;
        z-index: 10;
        opacity: 1;
        transform: translateX(-20px);
        animation: slideInLeft 0.8s ease-out 0.5s forwards;
    }

    /* Quote header */
    .quote-header {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        transition: transform 0.3s ease;
    }

    .quote-header:hover {
        transform: translateX(5px);
    }

    .quote-icon {
        flex-shrink: 0;
        padding: 0.75rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-right: 1rem;
        color: white;
        transition: all 0.3s ease;
        transform: scale(-1);
    }

    .quote-icon:hover {
        transform: scale(-1);
        background: rgba(255, 255, 255, 0.2);
    }

    .quote-labels {
        flex: 1;
    }

    .quote-title {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.125rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
        transition: color 0.3s ease;
    }

    .quote-title:hover {
        color: rgba(255, 255, 255, 1);
    }

    .quote-subtitle {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.875rem;
    }

    /* Main quote */
    .main-quote {
        font-size: 1.5rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 2rem;
        font-weight: 300;
        transition: all 0.4s ease;
    }

    @media (min-width: 768px) {
        .main-quote {
            font-size: 1.875rem;
        }
    }

    .main-quote:hover {
        color: rgba(255, 255, 255, 1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    .quote-text {
        display: inline-block;
        transition: all 0.4s ease;
        background-size: 200% 200%;
        animation: gradientShift 6s ease-in-out infinite;
        color:#ffffff;
        font-size:25px;
        font-weight:lighter;
        font-family:roboto,helvetica,arial;
        text-shadow:1px black;
    }

    .quote-text:hover {
        background-clip: text;


    }

    /* Attribution section */
    .attribution-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s ease-out 0.7s forwards;
    }

    .attribution-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: transform 0.3s ease;
    }

    .attribution-left:hover {
        transform: translateY(-2px);
    }

    .avatar-circle {
        width: 6rem;
        height: 6rem;
        border-radius: 50%;
        background-image: url('https://www.brownadvisory.com/sites/default/files/styles/small_square_300x300_/public/eerikson.png');
        /* Replace with your actual image path */
        background-size: cover;
        background-position: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .avatar-circle-2 {
        width: 6rem;
        height: 6rem;
        border-radius: 50%;
        background-image: url('https://brownadvisoryd8preprod.prod.acquia-sites.com/sites/default/files/dunethorne.png');
        /* Replace with your actual image path */
        background-size: cover;
        background-position: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .avatar-circle,
    .avatar-circle-2:hover {
        transform: scale(1.1);
    }

    .avatar-gradient {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
    }

    .attribution-text {
        flex: 1;
    }

    .author-name {
        color: white;
        font-size: 1.125rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.25rem;
        transition: all 0.3s ease;
    }

    .author-name:hover {
        color: #90B9DF;
        text-shadow: 0 0 10px rgba(144, 185, 223, 0.5);
    }

    .author-link {
        color: inherit;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: transform 0.2s ease;
    }

    .author-link:hover {
        transform: scale(1.02);
        text-decoration: underline;
    }

    .arrow-icon {
        opacity: 0;
        transition: all 0.2s ease;
        transform: translateX(-5px);
        display: inline-flex;
    }

    .author-link:hover .arrow-icon {
        opacity: 1;
        transform: translateX(0);
    }

    .author-title {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
        transition: color 0.3s ease;
    }

    .author-title:hover {
        color: rgba(255, 255, 255, 1);
    }

    /* Experience badge */
    .experience-badge {
        padding: 0.75rem 1.5rem;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        transition: all 0.3s ease;
    }

    .experience-badge:hover {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .badge-content {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.875rem;
        text-align: center;
    }

    .badge-number {
        font-size: 1.125rem;
        font-weight: 500;
        margin-bottom: 0.125rem;
    }

    .badge-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Glass glow effect */
    .glass-glow {
        position: absolute;
        inset: 0;
        border-radius: 16px;
        opacity: 0;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
        pointer-events: none;
        transition: opacity 0.6s ease;
    }

    .glass-card:hover .glass-glow {
        opacity: 0.2;
    }

    /* Animated border glow */
    .border-glow {
        position: absolute;
        inset: 0;
        border-radius: 24px;
        opacity: 0;
        background: conic-gradient(from 0deg, transparent, rgba(22, 57, 99, 0.3), transparent, rgba(52, 100, 142, 0.3), transparent);
        padding: 2px;
        pointer-events: none;
        animation: borderRotate 4s linear infinite;
        transition: opacity 0.3s ease;
    }

    .quote-card:hover .border-glow {
        opacity: 1;
    }

    .border-glow-inner {
        width: 100%;
        height: 100%;
        border-radius: 22px;
        background: transparent;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInContent {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes sparkleRotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    @keyframes sparkleScale {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.2);
        }
    }

    @keyframes circleRotate {
        from {
            transform: rotate(360deg);
        }

        to {
            transform: rotate(0deg);
        }
    }

    @keyframes circleFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-12px);
        }
    }

    @keyframes patternMove {
        0% {
            background-position: 0% 0%;
        }

        100% {
            background-position: 100% 100%;
        }
    }

    @keyframes gradientShift {

        0%,
        100% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }
    }

    @keyframes borderRotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .quote-section {
            padding: 3rem 0;
        }

        .main-quote {
            font-size: 1.25rem;
        }

        .attribution-section {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .floating-sparkles,
        .floating-circles {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .content-overlay {
            padding: 1.5rem;
            min-height: 400px;
        }

        .glass-card {
            padding: 1.5rem;
        }

        .quote-header {
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
        }

        .quote-icon {
            margin-right: 0;
            margin-bottom: 0.5rem;
        }
    }

    .quote2 .quote-attribution,
    .quote-card .quote-attribution {
        color: #fff;
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .quote2 .quote-title,
    .quote-card .quote-title {
        color: #fff;
        font-size: 0.98rem;
        font-weight: 100;
    }

    /* Section background colors */
    .bg-navy {
        background-color: #163963 !important;
    }

    .bg-light {
        background-color: #fcfcfc !important;
    }

    /* Spacing helpers */
    .pt-20 {
        padding-top: 20px !important;
    }

    .pb-20 {
        padding-bottom: 20px !important;
    }

    .pl-10 {
        padding-left: 10px !important;
    }

    .pr-10 {
        padding-right: 10px !important;
    }

    .pl-15 {
        padding-left: 15px !important;
    }

    .pr-15 {
        padding-right: 15px !important;
    }

    .mt-3 {
        margin-top: 1rem !important;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }

    /* Remove extra paddings for certain columns */
    .no-padding {
        padding: 0 !important;
    }

    @media (max-width: 991.98px) {
        #brand-hero h1 {
            padding: 0 !important;
            white-space: normal;
            width: 100%;
        }
    }

    @media only screen and (max-width:768px) {
        #brand-hero h1 {
            padding: 0 !important;
            white-space: normal;
            width: 100%;
        }
    }

    .banner-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #163963ad 0%, rgba(62, 83, 141, 0.123) 50%, rgba(255, 255, 255, 0.055) 100%);
    }