/* ==================================================
   CUSTOM OVERRIDES FOR MAGIC SQUARE SYSTEMS
   This file contains all custom styling overrides
   ================================================== */

/* FOOTER BACKGROUND COLOR OVERRIDE */
footer.footer-style4.bg-primary-solid,
.footer-style4.bg-primary-solid,
footer.bg-primary-solid {
    background: #333333 !important;
    background-color: #333333 !important;
}

/* Additional footer styling to ensure override works */
footer.footer-style4 {
    background: #333333 !important;
    background-color: #333333 !important;
}

/* Force footer background regardless of other classes */
footer[class*="footer-style4"] {
    background: #333333 !important;
    background-color: #333333 !important;
}

/* Logo styles */
#logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    max-height: 80px;
    width: auto;
    max-width: 200px;
}

/* Responsive logo sizing */
@media (max-width: 991px) {
    #logo {
        max-height: 40px;
    }
    .footer-logo {
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    #logo {
        max-height: 35px;
    }
    .footer-logo {
        max-height: 50px;
    }
}

/* Brand colors - ensure consistency */
.text-primary {
    color: #6d66fb !important;
}

.bg-primary-solid {
    background: #6d66fb !important;
}

.btn-primary,
.butn.fill {
    background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
}

/* Navigation link hover */
.nav-link:hover {
    color: #6d66fb !important;
}

/* Navigation Active State Styling */
.navbar-nav a.active{
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.navbar-nav-mobile a.active {
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

/* Desktop navigation active indicator */
.navbar-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    border-radius: 1px;
}

/* Mobile navigation active indicator */
.navbar-nav-mobile a.active {
    background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff;
    background-clip: text;
    border-radius: 5px;
    padding: 8px 15px !important;
    position: relative;
}

/* Mobile navigation active background accent */
.navbar-nav-mobile a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    opacity: 0.1;
    border-radius: 5px;
    z-index: -1;
}

/* Smooth transitions for navigation states */
.navbar-nav a,
.navbar-nav-mobile a {
    transition: all 0.3s ease;
}

/* TESTIMONIAL CARDS - CAROUSEL LAYOUT */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px; /* Add margin for carousel spacing */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-card .card-body {
    padding: 1.5rem;
}

.testimonial-card img {
    object-fit: cover;
    height: 100%;
    min-height: 250px; /* Increased for carousel view */
}

.testimonial-card .btn-outline-primary {
    border-color: #6d66fb;
    color: #6d66fb;
}

.testimonial-card .btn-outline-primary:hover {
    background-color: #6d66fb;
    border-color: #6d66fb;
    color: white;
}

/* Ensure equal height cards in carousel */
.testimonial-card .card {
    height: 100%;
    min-height: 350px; /* Set minimum height for consistency */
}

/* Carousel specific styling - Updated for 2-item portfolio layout */
.testmonial-style05.owl-carousel .owl-item {
    padding: 0; /* Remove padding to let JS handle spacing */
}

.testmonial-style05.owl-carousel .testimonial-card {
    margin: 0; /* Remove margin since owl-item spacing handled by JS */
    width: 100%; /* Ensure full width usage */
}

/* Portfolio specific overrides */
#portfolio .testmonial-style05.owl-carousel .owl-item {
    padding: 0;
}

#portfolio .testmonial-style05.owl-carousel .testimonial-card {
    width: 100%;
    max-width: none;
}

/* Responsive adjustments for carousel */
@media (max-width: 767px) {
    .testimonial-card img {
        min-height: 200px;
    }
    
    .testimonial-card .card {
        min-height: 300px;
    }
    
    .testimonial-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
   .testimonial-card .card  .img-fluid{
        width: 100% !important;

    }
    
  }


/* TEAM CAROUSEL - SMALL CARDS */
.team-carousel.owl-carousel {
    position: relative;
    /* Fix for infinite loop gaps */
    overflow: hidden;
}

.team-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
    transition: transform 0.6s ease-in-out !important;
}

.team-carousel.owl-drag .owl-stage {
    transition: none !important;
}

/* TEAM CAROUSEL */
.team-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
}

.team-carousel .owl-item {
    float: none !important;
    display: flex !important;
    justify-content: center;
    /* Remove all margins from owl-item */
    margin: 0 !important;
    padding: 0 10px !important; /* Use padding instead for spacing */
    width: auto !important;
}

/* Fix for cloned items to prevent gaps */
.team-carousel .owl-item.cloned {
    margin: 0 !important;
    padding: 0 10px !important;
}

/* Ensure no extra spacing */
.team-carousel .owl-item:last-child {
    margin: 0 !important;
}

.team-carousel .owl-item.cloned:last-child {
    margin: 0 !important;
}

.team-card-small {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    width: 100% !important;
    max-width: 250px !important;
    flex-shrink: 0;
}

.team-card-small:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-img-small {
    position: relative;
    overflow: hidden;
    height: 180px; /* Increased height for better proportions */
    width: 100%;
}

.team-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card-small:hover .team-img-small img {
    transform: scale(1.1);
}

.team-icons-small {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-card-small:hover .team-icons-small {
    opacity: 1;
}

.team-icons-small a {
    display: block;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #6d66fb;
    text-align: center;
    line-height: 25px;
    transition: all 0.3s ease;
    font-size: 11px;
}

.team-icons-small a:hover {
    background: #6d66fb;
    color: white;
    transform: scale(1.1);
}

.team-content-small {
    padding: 15px 10px; /* Increased padding for better spacing */
}

.team-name {
    font-size: 16px; /* Increased font size */
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.2;
}

.team-role {
    font-size: 12px; /* Increased font size */
    color: #6d66fb;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Responsive team cards */
@media (max-width: 1199px) {
    .team-img-small {
        height: 160px;
    }
}

@media (max-width: 991px) {
    .team-img-small {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .team-card-small {
        max-width: 300px !important;
    }
    
    .team-img-small {
        height: 200px;
    }
    
    .team-content-small {
        padding: 20px 15px;
    }
    
    .team-name {
        font-size: 18px;
    }
    
    .team-role {
        font-size: 14px;
    }
}

/* Team Carousel Navigation */
.team-carousel.owl-carousel .owl-nav {
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.team-carousel.owl-carousel .owl-nav button.owl-prev,
.team-carousel.owl-carousel .owl-nav button.owl-next {
    width: 50px;
    height: 50px;
    background: #6d66fb;
    color: white;
    border: none;
    border-radius: 50%;
    margin: 0 15px;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    outline: none;
    box-shadow: 0 4px 15px rgba(109, 102, 251, 0.3);
}

.team-carousel.owl-carousel .owl-nav button.owl-prev:hover,
.team-carousel.owl-carousel .owl-nav button.owl-next:hover {
    background: #af68de;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(109, 102, 251, 0.4);
}

/* Position nav buttons on sides for desktop */
@media (min-width: 992px) {
    .team-carousel.owl-carousel .owl-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        margin-top: 0;
        pointer-events: none;
    }
    
    .team-carousel.owl-carousel .owl-nav button.owl-prev {
        position: absolute;
        left: -25px;
        margin: 0;
        pointer-events: all;
    }
    
    .team-carousel.owl-carousel .owl-nav button.owl-next {
        position: absolute;
        right: -25px;
        margin: 0;
        pointer-events: all;
    }
}

/* ======================================
   UNIFIED CAROUSEL DOTS SYSTEM
   ====================================== */

/* CSS Custom Properties for Easy Customization */
:root {
    --carousel-dot-size: 12px;
    --carousel-dot-margin: 8px;
    --carousel-dot-border-width: 2px;
    --carousel-dot-transition: all 0.4s ease;
    --carousel-dot-scale: 1.2;
    
    /* Light Theme Colors */
    --carousel-dot-border-light: rgba(109, 102, 251, 0.4);
    --carousel-dot-bg-light: transparent;
    --carousel-dot-active-border-light: #6d66fb;
    --carousel-dot-active-bg-light: rgba(109, 102, 251, 0.1);
    --carousel-dot-shadow-light: rgba(109, 102, 251, 0.3);
    
    /* Dark Theme Colors */
    --carousel-dot-border-dark: rgba(255, 255, 255, 0.4);
    --carousel-dot-bg-dark: transparent;
    --carousel-dot-active-border-dark: white;
    --carousel-dot-active-bg-dark: rgba(255, 255, 255, 0.8);
    --carousel-dot-shadow-dark: rgba(255, 255, 255, 0.4);
}

/* BASE: All Carousel Dots Container */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
}

/* BASE: All Individual Carousel Dots */
.owl-carousel .owl-dots .owl-dot {
    width: var(--carousel-dot-size);
    height: var(--carousel-dot-size);
    background: var(--carousel-dot-bg-light);
    border: var(--carousel-dot-border-width) solid var(--carousel-dot-border-light);
    border-radius: 50%;
    margin: 0 var(--carousel-dot-margin);
    transition: var(--carousel-dot-transition);
    display: inline-block;
    outline: none;
    position: relative;
    cursor: pointer;
}

/* BASE: Hide All Dot Inner Spans */
.owl-carousel .owl-dots .owl-dot span {
    display: none !important;
}

/* BASE: All Active and Hover States */
.owl-carousel .owl-dots .owl-dot.active,
.owl-carousel .owl-dots .owl-dot:hover {
    background: var(--carousel-dot-active-bg-light);
    border-color: var(--carousel-dot-active-border-light);
    transform: scale(var(--carousel-dot-scale));
    box-shadow: 0 0 15px var(--carousel-dot-shadow-light);
}

/* TEAM SECTION GRADIENT BACKGROUND */
.team-gradient-section {
    background: linear-gradient(135deg, #4d267d 0%, #643085 100%) !important;
    position: relative;
}

.team-gradient-section h2,
.team-gradient-section .text-primary {
    color: white !important;
}

.team-gradient-section .team-name {
    color: #333 !important;
}

.team-gradient-section .team-role {
    color: #666 !important;
}

/* Ensure team cards remain white with proper contrast */
.team-gradient-section .team-card-small {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* DARK THEME: Gradient Background Overrides */
.team-gradient-section .owl-carousel .owl-dots .owl-dot {
    background: var(--carousel-dot-bg-dark);
    border-color: var(--carousel-dot-border-dark);
}

.team-gradient-section .owl-carousel .owl-dots .owl-dot.active,
.team-gradient-section .owl-carousel .owl-dots .owl-dot:hover {
    background: var(--carousel-dot-active-bg-dark);
    border-color: var(--carousel-dot-active-border-dark);
    transform: scale(var(--carousel-dot-scale));
    box-shadow: 0 0 15px var(--carousel-dot-shadow-dark);
}

/* Force Owl Carousel to calculate correctly */
.team-carousel.owl-carousel {
    position: relative;
    width: 100% !important;
}

.team-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
}

.team-carousel .owl-stage {
    position: relative;
    display: flex !important;
    align-items: stretch;
}

.team-carousel .owl-item {
    float: none !important;
    display: flex !important;
    justify-content: center;
    min-height: 1px;
}

/* Ensure proper width calculation on desktop */
@media (min-width: 1200px) {
    .team-carousel .owl-item {
        width: calc(25% - 15px) !important; /* 4 items with margin */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .team-carousel .owl-item {
        width: calc(25% - 15px) !important; /* 4 items with margin */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .team-carousel .owl-item {
        width: calc(33.333% - 13px) !important; /* 3 items with margin */
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .team-carousel .owl-item {
        width: calc(50% - 8px) !important; /* 2 items with margin */
    }
}

@media (max-width: 479px) {
    .team-carousel .owl-item {
        width: calc(100% - 5px) !important; /* 1 item with margin */
    }
}

/* FORCE HIDE NAVIGATION ELEMENTS
   ================================================== */

/* Hide all carousel navigation arrows globally */
.owl-carousel .owl-nav,
.owl-carousel .owl-nav button,
.owl-theme .owl-nav,
.owl-theme .owl-nav button {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure only dots are visible */
.owl-carousel .owl-dots,
.owl-theme .owl-dots {
    display: block !important;
    visibility: visible !important;
}

/* Prevent any square buttons from appearing */
.owl-carousel button:not(.owl-dot),
.owl-theme button:not(.owl-dot) {
    display: none !important;
}

/* Force team section to only show round dots */
.team-gradient-section .owl-nav,
.team-gradient-section .owl-nav button,
.team-gradient-section button:not(.owl-dot) {
    display: none !important;
    visibility: hidden !important;
}

/* Portfolio section - only round dots */
#portfolio .owl-nav,
#portfolio .owl-nav button,
#portfolio button:not(.owl-dot) {
    display: none !important;
    visibility: hidden !important;
}


/* ==================================================
   END SMOOTH SCROLLING NAVIGATION
   ================================================== */

/* CALL TO ACTION BUTTON STYLES
   ================================================== */

.cta-contact-btn {
    transition: all 0.3s ease;
    border: 2px solid white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    background: transparent !important;
    color: white !important;
}

.cta-contact-btn:hover {
    background: white !important;
    color: #6d66fb !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-contact-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cta-contact-btn {
        font-size: 12px;
        padding: 8px 20px !important;
    }
}

/* ==================================================
   END CALL TO ACTION BUTTON STYLES
   ================================================== */

/* FLOATING CTA BUTTON
   ================================================== */

.floating-cta-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-cta-btn.show {
    opacity: 1;
    visibility: visible;
}

.floating-cta-btn a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
    border: none;
    box-shadow: 0 4px 20px rgba(109, 102, 251, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-cta-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(109, 102, 251, 0.6);
    animation: none;
}

.floating-cta-btn a i {
    font-size: 20px;
    color: white;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(109, 102, 251, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(109, 102, 251, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(109, 102, 251, 0.4);
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .floating-cta-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cta-btn a {
        width: 50px;
        height: 50px;
    }
    
    .floating-cta-btn a i {
        font-size: 16px;
    }
}

/* ==================================================
   END FLOATING CTA BUTTON
   ================================================== */

/* NAVBAR CTA BUTTON STYLES
   ================================================== */

.navbar-cta {
    display: flex;
    align-items: center;
}

.navbar-cta-btn {
    padding: 8px 20px !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Default state - for transparent header */
.fixedHeader .navbar-cta-btn {
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    color: white;
    border-color: transparent;
}

.fixedHeader .navbar-cta-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* When navbar has white background (scrolled state) */
.scrollHeader .navbar-cta-btn {
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    color: white;
    border-color: transparent;
}

.scrollHeader .navbar-cta-btn:hover {
    background: transparent;
    color: #6d66fb;
    border-color: #6d66fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(109, 102, 251, 0.3);
}

/* Fallback for default state */
.navbar-cta-btn {
    background: linear-gradient(-45deg, #6d66fb, #af68de);
    color: white;
    border-color: transparent;
}

.navbar-cta-btn:hover {
    background: transparent;
    color: #6d66fb;
    border-color: #6d66fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(109, 102, 251, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-cta {
        margin-top: 15px;
        margin-left: 0 !important;
    }
    
    .navbar-cta-btn {
        font-size: 12px;
        padding: 6px 16px !important;
    }
}

@media (max-width: 767px) {
    .navbar-cta-btn {
        width: 100%;
        justify-content: center;
        margin-top: 25px;
    }
}

/* Navbar layout improvements */
.navbar-collapse-wrapper {
    width: 100%;
    justify-content: flex-end;
}

.navbar-collapse-wrapper .navbar-nav {
    margin-right: 0;
}

/* Ensure CTA button is visible on desktop */
@media (min-width: 992px) {
    .navbar-cta {
        display: flex !important;
    }
}

/* Mobile menu adjustments */
@media (max-width: 991px) {
    .navbar-collapse-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-cta {
        margin-top: 15px;
        margin-left: 0 !important;
        width: 100%;
    }
    
    .navbar-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* RESPONSIVE NAVBAR IMPROVEMENTS
   ================================================== */

/* Base navbar improvements for all sizes */
header.transparent-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    transition: all 0.3s ease;
}

.navbar-default {
    width: 100% !important;
    transition: all 0.3s ease;
}

/* Desktop navbar on scroll */
.navbar-default.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-default.navbar-scrolled .navbar-brand img {
    /* Logo changes handled by existing JS in main.js */
    transition: all 0.3s ease;
}

/* Enhanced mobile/tablet navbar depth and styling */
@media (max-width: 991px) {
    /* Always show white background on mobile/tablet */
    .navbar-default {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
        border-bottom: 3px solid #6d66fb !important;
        min-height: 70px !important;
        padding: 8px 0 !important;
    }

    .navbar-default.navbar-scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
    }   
    
    .navbar-default .container {
        padding: 8px 15px !important;
    }
    
    /* Navbar header layout for mobile - cleaner alignment */
    .navbar-header.navbar-header-custom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .navbar-header.navbar-header-custom > div {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    /* Logo styling for mobile/tablet */
    .navbar-brand {
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .navbar-brand img {
        max-height: 40px !important;
        width: auto !important;
        transition: all 0.3s ease;
    }
    
    /* Mobile CTA button - cleaner inline styling */
    .navbar-cta {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .navbar-cta-btn {
        background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
        color: white !important;
        border: none !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(109, 102, 251, 0.2) !important;
    }
    
    .navbar-cta-btn:hover {
        background: linear-gradient(-45deg, #5a52d5, #9854c4) !important;
        color: white !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(109, 102, 251, 0.3) !important;
    }
    
    .navbar-cta-btn i {
        margin-right: 4px !important;
        font-size: 11px !important;
    }
    
    /* Hamburger menu button - cleaner styling */
    .navbar-toggler {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        width: 30px !important;
        height: 30px !important;
        cursor: pointer !important;
        outline: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: none !important;
    }
    
    .navbar-toggler:hover {
        background: rgba(109, 102, 251, 0.08) !important;
    }
    
    /* Hamburger icon lines - cleaner design */
    .hamburger-line {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #333 !important;
        transition: all 0.3s ease !important;
        border-radius: 1px !important;
        position: relative !important;
        margin: 0 !important;
    }
    
    /* Hamburger animation when opened - cleaner transformation */
    .navbar-toggler.menu-opened .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px) !important;
        background: #6d66fb !important;
    }
    
    .navbar-toggler.menu-opened .hamburger-line:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    
    .navbar-toggler.menu-opened .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px) !important;
        background: #6d66fb !important;
    }
    
    /* Hide desktop navigation on mobile */
    .navbar-nav {
        display: none !important;
    }
    
    /* Mobile navigation menu */
    .navbar-nav-mobile {
        background: white !important;
        margin: 15px 0 0 0 !important;
        padding: 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        position: absolute !important;
        top: 100% !important;
        left: 15px !important;
        right: 15px !important;
        z-index: 1000 !important;
        display: none !important;
        list-style: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .navbar-nav-mobile.open {
        display: block !important;
    }
    
    /* Mobile menu items */
        .navbar-nav-mobile li {
            margin: 0 !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
            list-style: none !important;
            padding: 8px 15px !important;
        }
    
    .navbar-nav-mobile li:last-child {
        border-bottom: none !important;
    }
    
    .navbar-nav-mobile li a {
        color: #333 !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        padding: 15px 0 !important;
        display: block !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border-radius: 6px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-nav-mobile li a:hover {
        color: #6d66fb !important;
        background: rgba(109, 102, 251, 0.05) !important;
        padding-left: 15px !important;
        transform: translateX(3px) !important;
    }
    
    /* Ensure navbar collapse wrapper works properly */
    .navbar-collapse-wrapper {
        width: 100% !important;
        position: relative !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-default {
        min-height: 90px; /* Even more height on tablet */
    }
    
    .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 20px;
        background: transparent;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none;
        padding: 8px 15px !important;
        border-radius: 6px;
    }
    
    .navbar-cta {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: 20px;
    }

    .navbar-cta-btn {
        width: auto;
        padding: 8px 20px !important;
        margin-top: 25px;
    }
}

/* Desktop navbar (scrolled state) improvements */
@media (min-width: 992px) {
    .scrollHeader {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
    }
    
    .scrollHeader .navbar-nav .nav-link {
        color: #333 !important;
    }
    
    .scrollHeader .navbar-nav .nav-link:hover {
        color: #6d66fb !important;
    }
    
    .scrollHeader .navbar-brand img {
        /* Logo should change to dark version when scrolled */
        filter: brightness(0.2);
    }
}

/* Ensure navbar toggler works properly */
.navbar-toggler {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hide default Bootstrap toggler icon */
.navbar-toggler-icon {
    display: none;
}

/* Additional cleanup for any other pseudo-elements */
.navbar-toggler * {
    box-sizing: border-box;
}

.navbar-toggler::before,
.navbar-toggler::after {
    display: none !important;
    content: none !important;
}

/* Ensure clean hamburger appearance */
.navbar-toggler {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Override nav-menu.css pseudo-elements that create duplicate hamburger icons */
.navbar-toggler:before,
.navbar-toggler:after,
.navbar-toggler.menu-opened:before,
.navbar-toggler.menu-opened:after,
.navbar-toggler.dark:before,
.navbar-toggler.dark:after,
.navbar-toggler.dark.menu-opened:before,
.navbar-toggler.dark.menu-opened:after {
    display: none !important;
    content: none !important;
}

/* Ensure only our custom hamburger lines are visible */
.navbar-toggler .hamburger-line {
    display: block !important;
}

/* SIMPLE OVERLAPPING CTA
   ================================================== */

.simple-overlapping-cta {
    position: relative;
    z-index: 10;
    margin-top: -30px;
    margin-bottom: -30px;
    text-align: center;
}

.simple-overlap-btn {
    background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
    color: white !important;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(109, 102, 251, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.simple-overlap-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(109, 102, 251, 0.4);
    color: white !important;
}

.simple-overlap-btn i {
    transition: transform 0.3s ease;
}

.simple-overlap-btn:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 767px) {
    .simple-overlapping-cta {
        margin-top: -20px;
        margin-bottom: -20px;
    }
    
    .simple-overlap-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Hide empty owl-thumbs containers that cause gaps */
.owl-thumbs:empty,
.owl-thumbs:not(:has(*)) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force hide owl-thumbs for team carousel specifically */
.team-carousel .owl-thumbs {
    display: none !important;
}

/* SPECIFIC CAROUSEL TYPES
   ================================================== */

/* All carousel types inherit from the unified base styles above:
   - team-carousel: Uses light theme
   - testmonial-style05/07: Uses light theme  
   - clients-style2: Uses light theme
   - Dark backgrounds automatically use dark theme via .team-gradient-section override
*/

/* RESPONSIVE ADJUSTMENTS
   ================================================== */

/* Smaller dots on mobile */
@media (max-width: 768px) {
    :root {
        --carousel-dot-size: 10px;
        --carousel-dot-margin: 6px;
        --carousel-dot-border-width: 1px;
    }
}

/* Ensure consistency across all owl carousels */
.owl-theme .owl-dots .owl-dot {
    /* Reset any theme defaults */
    background: var(--carousel-dot-bg-light) !important;
    border: var(--carousel-dot-border-width) solid var(--carousel-dot-border-light) !important;
    width: var(--carousel-dot-size) !important;
    height: var(--carousel-dot-size) !important;
    margin: 0 var(--carousel-dot-margin) !important;
}

.owl-theme .owl-dots .owl-dot.active,
.owl-theme .owl-dots .owl-dot:hover {
    background: var(--carousel-dot-active-bg-light) !important;
    border-color: var(--carousel-dot-active-border-light) !important;
    transform: scale(var(--carousel-dot-scale)) !important;
    box-shadow: 0 0 15px var(--carousel-dot-shadow-light) !important;
}

/* Override dark theme for gradient sections */
.team-gradient-section .owl-theme .owl-dots .owl-dot {
    background: var(--carousel-dot-bg-dark) !important;
    border-color: var(--carousel-dot-border-dark) !important;
}

.team-gradient-section .owl-theme .owl-dots .owl-dot.active,
.team-gradient-section .owl-theme .owl-dots .owl-dot:hover {
    background: var(--carousel-dot-active-bg-dark) !important;
    border-color: var(--carousel-dot-active-border-dark) !important;
    box-shadow: 0 0 15px var(--carousel-dot-shadow-dark) !important;
}

/* TEAM SECTION DOTS - FORCE CIRCULAR SHAPE
   ================================================== */

/* Override any button styling on team dots */
.team-gradient-section .owl-carousel .owl-dots .owl-dot,
.team-gradient-section .owl-carousel button.owl-dot,
.team-gradient-section .owl-theme .owl-dots .owl-dot,
.team-gradient-section .owl-theme button.owl-dot {
    background: var(--carousel-dot-bg-dark) !important;
    border: var(--carousel-dot-border-width) solid var(--carousel-dot-border-dark) !important;
    border-radius: 50% !important; /* Force circular shape */
    width: var(--carousel-dot-size) !important;
    height: var(--carousel-dot-size) !important;
    margin: 0 var(--carousel-dot-margin) !important;
    padding: 0 !important;
    display: inline-block !important;
    transition: var(--carousel-dot-transition) !important;
    cursor: pointer !important;
    outline: none !important;
    font: inherit !important;
    color: transparent !important;
    text-indent: -9999px !important; /* Hide any text */
    overflow: hidden !important;
}

/* Team section active and hover states */
.team-gradient-section .owl-carousel .owl-dots .owl-dot.active,
.team-gradient-section .owl-carousel .owl-dots .owl-dot:hover,
.team-gradient-section .owl-carousel button.owl-dot.active,
.team-gradient-section .owl-carousel button.owl-dot:hover,
.team-gradient-section .owl-theme .owl-dots .owl-dot.active,
.team-gradient-section .owl-theme .owl-dots .owl-dot:hover,
.team-gradient-section .owl-theme button.owl-dot.active,
.team-gradient-section .owl-theme button.owl-dot:hover {
    background: var(--carousel-dot-active-bg-dark) !important;
    border-color: var(--carousel-dot-active-border-dark) !important;
    border-radius: 50% !important; /* Maintain circular shape on hover/active */
    transform: scale(var(--carousel-dot-scale)) !important;
    box-shadow: 0 0 15px var(--carousel-dot-shadow-dark) !important;
}

/* Hide any spans inside team dots */
.team-gradient-section .owl-carousel .owl-dots .owl-dot span,
.team-gradient-section .owl-theme .owl-dots .owl-dot span {
    display: none !important;
    visibility: hidden !important;
}

/* GLOBAL DOT BORDER-RADIUS ENFORCEMENT
   ================================================== */

/* Force all carousel dots to be circular */
.owl-carousel .owl-dots .owl-dot,
.owl-carousel button.owl-dot,
.owl-theme .owl-dots .owl-dot,
owl-theme button.owl-dot {
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    -ms-border-radius: 50% !important;
}

/* Ensure no square corners anywhere */
.owl-carousel .owl-dots .owl-dot *,
.owl-theme .owl-dots .owl-dot * {
    border-radius: 50% !important;
}

/* PORTFOLIO CAROUSEL RESPONSIVE LAYOUT
   ================================================== */

/* Portfolio section uses testmonial-style05 class */
#portfolio .testmonial-style05.owl-carousel {
    position: relative;
    overflow: hidden;
}

#portfolio .testmonial-style05.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
    transition: transform 0.6s ease-in-out !important;
}

#portfolio .testmonial-style05.owl-carousel .owl-item {
    float: none !important;
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    min-height: 1px;
    /* Responsive margins handled by JS */
}

/* Portfolio card responsive layout adjustments */
#portfolio .testimonial-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
}

#portfolio .testimonial-card .card {
    height: 100%;
    min-height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#portfolio .testimonial-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure images maintain aspect ratio */
#portfolio .testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

/* Responsive adjustments for portfolio cards */
@media (min-width: 992px) {
    /* Desktop: 3 items per row */
    #portfolio .testimonial-card .card {
        min-height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet: 2 items per row */
    #portfolio .testimonial-card .card {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    /* Mobile: 1 item per row */
    #portfolio .testimonial-card .card {
        min-height: 300px;
    }
    
    #portfolio .testimonial-card img {
        min-height: 150px;
    }
}

/* Portfolio carousel dots - ensure always visible */
#portfolio .owl-dots {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

#portfolio .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

#portfolio .owl-dots .owl-dot.active,
#portfolio .owl-dots .owl-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* PORTFOLIO ALTERNATIVE - OWL CAROUSEL LAYOUT
   ================================================== */

#portfolio-alt {
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Portfolio Alternative Carousel Styling */
.portfolio-carousel-alt.owl-carousel {
    margin-bottom: 40px;
}

.portfolio-carousel-alt .portfolio-slide {
    transition: all 0.4s ease;
}

.portfolio-carousel-alt .portfolio-slide .card {
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-carousel-alt .portfolio-slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(109, 102, 251, 0.15) !important;
}

/* Selected state styling for carousel items */
.portfolio-carousel-alt .portfolio-slide.selected .card {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(109, 102, 251, 0.2) !important;
}

.portfolio-carousel-alt .portfolio-slide.selected .card-body {
    background: linear-gradient(135deg, #6d66fb 0%, #af68de 100%);
    color: white;
    transition: all 0.4s ease;
}

.portfolio-carousel-alt .portfolio-slide.selected .card-title,
.portfolio-carousel-alt .portfolio-slide.selected .card-text {
    color: white !important;
}

.portfolio-carousel-alt .portfolio-slide.selected .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.portfolio-carousel-alt .portfolio-slide.selected .btn-outline-primary {
    border-color: white !important;
    color: white !important;
    background: transparent !important;
}

.portfolio-carousel-alt .portfolio-slide.selected .btn-outline-primary:hover {
    background: white !important;
    color: #6d66fb !important;
}

/* Image styling - matches original testimonial layout */
.portfolio-carousel-alt .col-md-4 img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    transition: all 0.4s ease;
}

.portfolio-carousel-alt .card:hover .col-md-4 img {
    transform: scale(1.02);
}

.portfolio-carousel-alt .portfolio-slide.selected .col-md-4 img {
    transform: scale(1.01);
}

.portfolio-carousel-alt .card-body {
    padding: 2rem;
    transition: all 0.4s ease;
}

/* Slower, more elegant transitions for Portfolio Alternative */
.portfolio-carousel-alt.owl-carousel .owl-item {
    transition: all 1.8s ease !important;
}

.portfolio-carousel-alt.owl-carousel .owl-stage {
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.portfolio-carousel-alt .card {
    transition: all 0.6s ease !important;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-carousel-alt .card:hover {
    transition: all 0.4s ease !important;
}

/* Individual card layout - center cards nicely for 2-card slides */
.portfolio-carousel-alt .portfolio-slide {
    display: block;
    min-height: 350px;
}

.portfolio-carousel-alt .portfolio-slide .row {
    margin: 0;
    justify-content: center;
}

/* Enhanced fade transitions */
.portfolio-carousel-alt.owl-carousel .animated {
    animation-duration: 1.8s !important;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.portfolio-carousel-alt.owl-carousel .fadeOut {
    animation-duration: 1.8s !important;
}

.portfolio-carousel-alt.owl-carousel .fadeIn {
    animation-duration: 1.8s !important;
}

/* Portfolio Alternative Carousel Slide Animations */
.portfolio-carousel-alt .owl-item {
    transition: all 0.3s ease;
}

/* Slide animations for seamless looping */
@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        visibility: hidden;
        transform: translate3d(-100%, 0, 0);
    }
}

.slideInRight {
    animation-name: slideInRight;
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

.slideOutLeft {
    animation-name: slideOutLeft;
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

/* Ensure portfolio carousel container has proper overflow handling */
.portfolio-carousel-alt {
    overflow: hidden;
    position: relative;
}

.portfolio-carousel-alt .owl-stage-outer {
    overflow: hidden;
}

/* Vertical Support Button */
.vertical-support-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vertical-support-btn.show {
    opacity: 1;
    visibility: visible;
}

.vertical-support-btn a {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    background: linear-gradient(-45deg, #6d66fb, #af68de) !important;
    color: white !important;
    padding: 20px 12px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(109, 102, 251, 0.3);
    border: none;
    display: block;
    text-align: center;
    line-height: 1;
}

.vertical-support-btn a:hover {
    background: linear-gradient(-45deg, #5d56eb, #9f58ce) !important;
    box-shadow: 0 6px 20px rgba(109, 102, 251, 0.4);
    color: white !important;
}

/* Portfolio Alternative Carousel - Image Positioning */
.portfolio-carousel-alt .card .img-fluid {
    object-position: left center;
}

/* Desktop-specific image positioning */
@media (min-width: 768px) {
    .portfolio-carousel-alt .card .img-fluid {
        object-position: left center;
        object-fit: cover;
    }
}

/* Case Study Page Specific Styles */
.header-always-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-always-fixed .navbar-brand img {
    max-height: 40px;
}

/* Video Section Styling */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

/* Case Study Hero Section */
.full-screen {
    min-height: 100vh;
}

/* Results Cards */
.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Quote Styling */
.quote {
    font-size: 4rem;
    opacity: 0.3;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Feature Icons */
.rounded-circle {
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .quote {
        font-size: 3rem;
    }
}

/* Video Poster and Controls */
video {
    border-radius: 0.5rem;
}

/* List Styling */
.list-style {
    list-style: none;
    padding-left: 0;
}

.list-style li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-style li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CU ETHICS Case Study Page Styles */
.cu-ethics-hero {
    background: 
        linear-gradient(
            135deg,
            rgba(30, 58, 138, 0.85) 0%,    /* dark blue top-left with transparency */
            rgba(59, 130, 246, 0.80) 50%,  /* medium blue middle with transparency */
            rgba(30, 64, 175, 0.85) 100%   /* darker blue bottom-right with transparency */
        ),
        url('../img/banner/cu_ethics_hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.cu-ethics-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(30, 58, 138, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.cu-ethics-hero .container {
    position: relative;
    z-index: 2;
}

.cu-ethics-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cu-ethics-hero .btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cu-ethics-hero .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cu-ethics-hero .btn-white {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #1e40af;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cu-ethics-hero .btn-white:hover {
    background: #ffffff;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ethics Image Styling */
.cu-ethics-hero img {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.cu-ethics-hero img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for CU ETHICS hero */
@media (max-width: 768px) {
    .cu-ethics-hero {
        min-height: 70vh !important;
    }
    
    .cu-ethics-hero h1 {
        font-size: 2.2rem;
    }
}

/* Hope Programme Case Study Page Styles */

/* Hope Gradient Background */
.hope-gradient {
    background: linear-gradient(
        135deg,
        #B4E1F9 0%,   /* light sky blue top-left */
        #FBC9A3 50%,  /* soft peach middle */
        #F6A57F 100%  /* warm pink-orange bottom-right */
    );
}

.hope-hero {
    background: 
        linear-gradient(
            135deg,
            rgba(180, 225, 249, 0.85) 0%,   /* light sky blue top-left with transparency */
            rgba(251, 201, 163, 0.85) 50%,  /* soft peach middle with transparency */
            rgba(246, 165, 127, 0.85) 100%  /* warm pink-orange bottom-right with transparency */
        ),
        url('../img/banner/ihope+image3.jpg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hope-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(233, 79, 139, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(247, 148, 61, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hope-hero .container {
    position: relative;
    z-index: 2;
}

.hope-hero h1 {
    color: #0D3B66;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.hope-hero .lead {
    color: #0D3B66;
    opacity: 0.8;
}

.hope-hero .btn-outline-white {
    border: 2px solid #0D3B66;
    color: #0D3B66;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.hope-hero .btn-outline-white:hover {
    background: #0D3B66;
    border-color: #0D3B66;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 59, 102, 0.3);
}

.hope-hero .btn-white {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #0D3B66;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hope-hero .btn-white:hover {
    background: #ffffff;
    color: #0D3B66;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 59, 102, 0.2);
}

/* Hope CTA Section */
.hope-cta-section {
    background: linear-gradient(
        135deg,
        #89CFF0 0%,   /* sky blue start */
        #E94F8B 50%,  /* pink middle */
        #F7943D 100%  /* orange end */
    );
    position: relative;
}

.hope-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 59, 102, 0.1);
    z-index: 1;
}

.hope-cta-section .container {
    position: relative;
    z-index: 2;
}

.hope-cta-section .btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}

.hope-cta-section .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.hope-cta-section .btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: #0D3B66;
    border: none;
    transition: all 0.3s ease;
}

.hope-cta-section .btn-white:hover {
    background: #ffffff;
    color: #0D3B66;
    transform: translateY(-2px);
}

/* Hope Image Styling */
.hope-hero img {
    filter: drop-shadow(0 10px 25px rgba(13, 59, 102, 0.2));
    transition: transform 0.3s ease;
}

.hope-hero img:hover {
    transform: scale(1.05);
}

/* Hope Brand Colors for Icons and Elements */
.hope-page .rounded-circle.bg-primary {
    background: linear-gradient(135deg, #89CFF0 0%, #E94F8B 100%) !important;
}

.hope-page .text-primary {
    color: #0D3B66 !important;
}

.hope-page .bg-primary {
    background: linear-gradient(135deg, #89CFF0 0%, #E94F8B 100%) !important;
}

/* Image Gallery Styles */
.hope-image-gallery {
    background: #FAFAFA;
    padding: 4rem 0;
}

.hope-image-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 59, 102, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.hope-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 59, 102, 0.15);
}

.hope-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hope-image-card:hover img {
    transform: scale(1.05);
}

.hope-image-card .card-body {
    padding: 1.5rem;
}

.hope-image-card h5 {
    color: #0D3B66;
    margin-bottom: 0.5rem;
}

.hope-image-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Hope Programme Blockquote Styling */
.hope-page .blockquote {
    background: rgba(180, 225, 249, 0.1);
    border-left: 4px solid #0D3B66;
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(13, 59, 102, 0.1);
}

.hope-page .blockquote p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #0D3B66;
    letter-spacing: 0.5px;
    font-style: italic;
    margin-bottom: 15px;
}

.hope-page .blockquote-footer {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.hope-page .blockquote-footer::before {
    content: "— ";
}




