:root {
    --primary: #543374;
    --primary-light: #9966cc;
    --primary-rgb: 84, 51, 116; /* For rgba usage */
}

body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: Arial, Helvetica, sans-serif !important;
}

body .text-primary { color: var(--primary) !important; }
body .bg-primary { background-color: var(--primary) !important; }
body .btn-primary { 
    background-color: var(--primary) !important; 
    border-color: var(--primary) !important; 
    color: #fff !important;
}
body .btn-primary:hover, body .btn-primary:focus, body .btn-primary:active { 
    background-color: var(--primary-light) !important; 
    border-color: var(--primary-light) !important; 
    color: #fff !important;
}

/* Light Theme Utilities */
.text-primary-80 { color: rgba(var(--primary-rgb), 0.8) !important; }
.text-primary-70 { color: rgba(var(--primary-rgb), 0.7) !important; }
.text-primary-50 { color: rgba(var(--primary-rgb), 0.5) !important; }

body .btn-soft-primary {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}
body .btn-soft-primary:hover, body .btn-soft-primary:focus, body .btn-soft-primary:active {
    background-color: var(--primary) !important;
    color: #fff !important;
}

body .bg-soft-primary { 
    background-color: rgba(var(--primary-rgb), 0.1) !important; 
}

a { color: var(--primary); }
a:hover { color: var(--primary-light); text-decoration: none;}

/* Adjust overlay color and video background */
.bg-video-holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(1.1); /* Subtle adjustment to match light theme */
}

.video-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: none; /* Removed blur effect */
    z-index: -1;
}

body .overlay-inner.bg-white {
    background-color: transparent !important; /* Managed by .video-overlay now */
}

/* Nav links active state specific color */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary) !important;
}
.navbar-light .navbar-nav .nav-item.active .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--primary-light) !important;
    font-weight: 700 !important; /* Targets both li.active and a:hover */
}
/* Navbar Scrolled State - Very Subtle Corporate Fade */
.site-navbar.scrolled {
    background: linear-gradient(to bottom, 
        rgba(var(--primary-rgb), 0.12) 0%, 
        rgba(var(--primary-rgb), 0.05) 40%, 
        rgba(var(--primary-rgb), 0) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: 15px !important;
    padding-bottom: 25px !important;
    border-top: 2px solid rgba(var(--primary-rgb), 0.1); /* Subtle definition at the very top */
}

/* Logo scaling and visibility */
.navbar-brand-img {
    max-height: 70px !important; /* Increased for better visibility */
    transition: all 0.3s ease;
}

/* Logo remains original purple */
.site-navbar.scrolled .navbar-brand-img {
    filter: none !important;
}


@media (max-width: 991px) {
    .navbar-brand-img {
        max-height: 32px !important; /* Shrunk on mobile/tablet */
    }
}

/* NEW: Glassmorphism News Slider on Homepage */
.glass-news-slider {
    position: absolute;
    bottom: 50px !important;
    right: 50px !important;
    width: 380px;
    min-height: 160px;
    background: rgba(0, 0, 0, 0.03) !important; /* Very light transparent grey */
    backdrop-filter: blur(5px) !important; /* Subtle glass effect */
    -webkit-backdrop-filter: blur(5px) !important;
    border: none;
    border-left: 3px solid var(--primary-light);
    border-radius: 4px;
    padding: 25px 45px 25px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    z-index: 100;
    color: var(--primary) !important;
    transition: all 0.4s ease;
}

.glass-slider-header h3 {
    color: var(--primary-50);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 25px !important;
}

.glass-slider-body {
    position: relative;
    min-height: 100px;
}

.glass-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
}

.glass-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-item h4 {
    font-size: 1rem; /* Smaller headings */
    line-height: 1.4;
    letter-spacing: -0.2px;
    margin-top: 0;
}

.glass-item p {
    font-size: 0.8rem; /* Smaller summary text */
    color: rgba(84, 51, 116, 0.8);
    font-weight: 300;
}

/* Vertical Dots Pagination */
.glass-slider-dots {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-slider-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(84, 51, 116, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-slider-dots .dot.active {
    background: var(--primary-light);
    transform: scale(1.6);
    box-shadow: 0 0 10px rgba(84, 51, 116, 0.2);
}

@media (max-width: 1199px) {
    .glass-news-slider {
        width: 400px;
        bottom: 40px;
        right: 40px;
    }
}

@media (max-width: 991px) {
    .glass-news-slider {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 40px !important;
        margin-bottom: 20px !important;
        background: rgba(84, 51, 116, 0.04) !important;
        backdrop-filter: blur(10px) !important;
        border: none !important;
        border-left: 3px solid var(--primary-light) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
        padding: 25px 45px 25px 25px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 767px) {
    .glass-item h4 {
        font-size: 1rem !important;
    }
}

/* Team Cards Hover Effects */
.team-card .team-card-img {
    transition: transform 0.5s ease;
}
.team-card:hover .team-card-img {
    transform: scale(1.05);
}
.team-card .team-card-overlay {
    background: rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
}
.team-card:hover .team-card-overlay {
    background: rgba(0, 0, 0, 0) !important;
}
.team-card-info {
    bottom: -15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.team-card:hover .team-card-info {
    bottom: 0;
    opacity: 1;
}

/* Custom Team Grid */
.team-grid-custom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* Custom Insights Grid - 3 Column Layout */
.insights-grid-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1199px) {
  .team-grid-custom {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .team-grid-custom,
  .insights-grid-custom {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .team-card-info h5 {
    font-size: 0.8rem !important;
  }
  .team-card-info p {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 575px) {
  .team-grid-custom {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* Slightly tighter gap for 3-column mobile */
  }
  .insights-grid-custom {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
}

/* Expertise Accordion Styles */
.expertise-accordion {
  width: 100%;
}

.expertise-accordion .card {
  width: 100%;
  background-color: rgba(84, 51, 116, 0.04);
  backdrop-filter: blur(2px);
  border: none;
  border-left: 2px solid rgba(84, 51, 116, 0.2);
  margin-bottom: 10px;
  border-radius: 0 !important;
  transition: all 0.3s ease;
}

.expertise-accordion .card-header {
  background: transparent;
  border: none;
  padding: 0;
}

.expertise-accordion .btn-link {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.expertise-accordion .btn-link:hover,
.expertise-accordion .btn-link:focus {
  text-decoration: none;
  background-color: rgba(84, 51, 116, 0.08);
}

.expertise-accordion .btn-link.collapsed {
  color: var(--primary-50);
}

.expertise-accordion .btn-link:not(.collapsed) {
  border-left: 3px solid var(--primary-light);
  background-color: rgba(84, 51, 116, 0.08);
}

.expertise-accordion .btn-link i {
  transition: transform 0.3s ease;
}

.expertise-accordion .btn-link:not(.collapsed) i {
  transform: rotate(180deg);
  color: var(--primary-light);
}

.expertise-accordion .card-body {
  padding: 0 25px 25px 25px;
  color: var(--primary-80);
  font-weight: 300;
  line-height: 1.7;
}

/* Slider Custom Styles */
#heroSliderContent {
    transition: all 0.5s ease;
}

.hover-move-right i {
    transition: transform 0.3s ease;
}

.hover-move-right:hover i {
    transform: translateX(5px);
}

.news-image-wrap {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.news-image-wrap img {
    transition: transform 0.8s ease;
}

#heroSliderContent:hover .news-image-wrap img {
    transform: scale(1.05);
}

.border-primary-20 {
    border-color: rgba(var(--primary-rgb), 0.1) !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.news-nav-sidebar {
    border-left: 1px solid rgba(var(--primary-rgb), 0.1);
    padding-left: 30px;
}

@media (max-width: 991.98px) {
    .news-nav-sidebar {
        border-left: none;
        padding-left: 15px;
        margin-top: 40px;
    }
}

/* Hero Section Typography Defaults */
.hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 650px; /* Aligned with hero-text */
}
.hero-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-light);
    border-radius: 2px;
}
.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 650px;
    color: var(--primary-80);
    display: block;
}
.hero-statement-slider {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}
.hero-statement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    text-decoration: none !important;
}
.hero-statement.active {
    opacity: 1;
    visibility: visible;
}
a.hero-statement:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}
@media (max-width: 767px) {
    .hero-statement-slider {
        min-height: 120px !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }
    .hero-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    .hero-image-card .btn-lg {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
    .navbar-brand-img {
        max-height: 42px !important;
    }
    /* Team Modal Close Button overriding Bootstrap text-primary */
    .modal-content .close.text-primary {
        color: #fff !important;
        opacity: 1 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    }
}
/* Mobile Menu Background Fix */
@media (max-width: 991px) { 
    .navbar-collapse.show, .navbar-collapse.collapsing { background-color: #fff !important; margin-top: 15px; padding: 20px; border-radius: 8px; box-shadow: 0 10px 40px rgba(84, 51, 116, 0.15); border: 1px solid rgba(84, 51, 116, 0.05); } 
    
    section.min-vh-100 {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 120px !important;
        padding-bottom: 60px !important;
        display: block !important;
    }
    .website-slider-item {
        overflow: visible !important;
    }
}

/* Responsive Modal Scrollable Content */
@media (min-width: 768px) {
    .modal-side-scroll {
        max-height: 380px; /* Reduced further to ensure a perfect square (1:1) look */
        overflow-y: auto;
        overflow-x: hidden;
    }
    .modal-fixed-img {
        height: 380px;
        background: #f8f9fa;
    }
    .modal-fixed-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

