/* ICL Navbar CSS - Updated Layout */
:root {
    --blue: #0046AD;
    --turq: #00B1AC;
    --link-teal: #00B1AC;
    --grey: #444444;
    --light-grey: #f8f8f8;
    /* The SitePath variable will be set via JavaScript */
    --site-path: '';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--grey);
    padding-top: 140px; /* 75px top bar + 65px nav bar */
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--link-teal);
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header Container */
.header-container {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0;
    padding-top: 0;
}

.header-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0;
    padding-top: 0;
}

body.sticky-header-active {
    padding-top: 0;
    margin-top: 0;
}

/* Top Bar - First Row with Logos and Search - Enhanced with modern styling */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    height: 75px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Logo Containers */
.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.left-logo {
    margin-right: 25px;
}

.right-logo {
    margin-left: 25px;
}

/* Brand Center - Visual separator between logos */
.brand-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 20px;
}

.brand-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3abfbe 20%, #274fa7 50%, #3abfbe 80%, transparent 100%);
    position: relative;
    border-radius: 1px;
}

.brand-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3abfbe;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(58, 191, 190, 0.5);
}

/* Navigation Bar - Second Row - Enhanced modern styling */
.nav-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Main Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    flex: 1;
}

/* Navigation Search */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-nav-item {
    position: relative;
    margin: 0 20px;
    transition: transform 0.2s ease;
}

.main-nav-item:hover {
    transform: translateY(-3px);
}

.main-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.main-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 191, 190, 0.1), transparent);
    transition: left 0.5s ease;
}

.main-nav-link:hover::before {
    left: 100%;
}

.main-nav-link i {
    font-size: 28px;
    margin-bottom: 8px;
    color: #274fa7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(39, 79, 167, 0.1));
}

.main-nav-link span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.main-nav-link:hover {
    color: #274fa7;
    background: linear-gradient(135deg, rgba(58, 191, 190, 0.08) 0%, rgba(39, 79, 167, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-nav-link:hover i {
    color: #3abfbe;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(58, 191, 190, 0.3));
}

/* Main Nav Item hover and active styles */
.main-nav-item:hover .main-nav-link,
.main-nav-item.active .main-nav-link,
.main-nav-item.hover-active .main-nav-link {
    color: var(--blue);
    background-color: rgba(0, 70, 173, 0.05);
}

.main-nav-item:hover .main-nav-link i,
.main-nav-item.active .main-nav-link i,
.main-nav-item.hover-active .main-nav-link i {
    color: var(--blue);
}

.main-nav-item:hover,
.main-nav-item.active,
.main-nav-item.hover-active {
    transform: translateY(-2px);
}

.main-nav-item.active .main-nav-link {
    position: relative;
    background: linear-gradient(135deg, #274fa7 0%, #3abfbe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 79, 167, 0.3);
}

.main-nav-item.active .main-nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #274fa7 0%, #3abfbe 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(39, 79, 167, 0.2);
}

.main-nav-item.active .main-nav-link i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.main-nav-item.active .main-nav-link:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    box-shadow: 0 6px 20px rgba(39, 79, 167, 0.4);
}

/* Search Toggle */
.search-toggle {
    display: flex;
    align-items: center;
    position: relative;
}

.search-toggle-btn {
    background: linear-gradient(135deg, rgba(39, 79, 167, 0.05) 0%, rgba(58, 191, 190, 0.05) 100%);
    border: 2px solid rgba(39, 79, 167, 0.1);
    color: #274fa7;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.search-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(58, 191, 190, 0.2) 0%, transparent 70%);
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.search-toggle-btn:hover {
    background: linear-gradient(135deg, #274fa7 0%, #3abfbe 100%);
    border-color: #274fa7;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(39, 79, 167, 0.3);
}

.search-toggle-btn:hover::before {
    width: 100%;
    height: 100%;
}

.search-input-container {
    position: absolute;
    right: 0;
    top: 100%;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
}

.search-input-container.active {
    width: 250px;
    opacity: 1;
    visibility: visible;
}

.search-input-container form {
    display: flex;
    width: 100%;
    align-items: center;
}

.search-input {
    border: none;
    padding: 10px 15px;
    flex: 1;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.search-submit {
    background: none;
    border: none;
    color: var(--link-teal);
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    color: var(--blue);
}

/* Dropdown containers */
.dropdown-containers {
    position: relative;
    width: 100%;
    z-index: 1001;
}

.dropdown-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: block;
}

.dropdown-container.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
}

.dropdown-section {
    flex: 1;
    padding: 0 20px;
}

.dropdown-featured {
    background-color: var(--turq);
    border-radius: 4px;
    padding: 20px;
}

.dropdown-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

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

.dropdown-list li {
    margin-bottom: 10px;
}

.dropdown-list a {
    color: var(--grey);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.dropdown-list a:hover {
    color: var(--link-teal);
    text-decoration: none;
    border-bottom: 2px solid var(--link-teal);
}

.featured-content {
    padding: 15px;
    color: #070707;
}

.featured-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0a0a0a;
}

.featured-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--link-teal);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--blue);
    padding: 8px;
    margin-right: 15px;
}

.mobile-menu-toggle i {
    color: var(--blue);
}

/* Mobile Navigation - Updated structure */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1010;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

/* Backdrop for mobile navigation */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Submenu Animations - IMPROVED */
.mobile-submenu {
    display: none; /* Start hidden - will be controlled by JS */
    background-color: #f8f8f8;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Mobile nav header with logo and close button */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Added logo styling */
.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    height: 30px;
    width: auto;
}

/* Added header actions container */
.mobile-header-actions {
    display: flex;
    align-items: center;
}

/* Styling for search toggle in header */
.mobile-search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--turq);
    padding: 8px;
    margin-right: 15px;
    transition: all 0.2s ease;
}

.mobile-search-toggle:hover {
    color: var(--blue);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--grey);
    transition: all 0.2s ease;
    padding: 8px;
}

.mobile-nav-close:hover {
    color: var(--blue);
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

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

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.mobile-menu-link {
    display: block;
    padding: 15px 20px;
    color: var(--grey);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Style for active menu item (current page) */
.mobile-menu-item.active > .mobile-menu-link {
    color: var(--turq);
}

.mobile-menu-item.active > .mobile-dropdown-toggle {
    color: var(--turq);
}

.mobile-menu-item.has-submenu > .mobile-menu-link {
    padding-right: 50px;
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 54px;
    width: 50px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

/* Explicitly set icon for toggling */
.mobile-dropdown-toggle i.fa-plus {
    transform: rotate(0deg);
}

.mobile-dropdown-toggle i.fa-minus {
    transform: rotate(180deg);
}

.mobile-menu-item:hover > .mobile-menu-link {
    color: var(--turq);
}

.mobile-submenu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    background-color: #f9f9f9;
}

.mobile-submenu-item {
    padding: 10px 20px;
}

.mobile-submenu-group {
    margin-bottom: 10px;
}

.submenu-group-title {
    display: block;
    font-weight: 700;
    color: var(--blue);
    padding: 10px 0 5px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.mobile-submenu-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-submenu-group-list li {
    margin-bottom: 5px;
}

.mobile-submenu-group-list a {
    display: block;
    padding: 8px 0;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-submenu-group-list a:hover,
.mobile-submenu-group-list a.active {
    color: var(--turq);
}

/* Mobile Search Modal */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 2100;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.mobile-search-modal.active {
    display: flex;
}

.mobile-search-container {
    width: 90%;
    max-width: 600px;
}

.mobile-search-form {
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid var(--turq);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.mobile-search-button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background: none;
    border: none;
    color: var(--turq);
    font-size: 18px;
    cursor: pointer;
}

.mobile-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--grey);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .top-bar {
        padding: 10px 15px;
        height: 70px;
        border-bottom: none;
    }

    .nav-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    body.mobile-nav-open {
        overflow: hidden;
    }
    
    .logo-container img {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .mobile-nav-content {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .mobile-menu-link {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .mobile-dropdown-toggle {
        height: 48px;
    }
    
    .mobile-submenu-group-list a {
        font-size: 15px;
    }
    
    .mobile-logo img {
        height: 25px;
    }
}

/* Responsive design */
@media (max-width: 991px) {
    .top-bar {
        padding: 10px;
        height: auto;
    }
    
    .logo-container.left-logo {
        flex: 1;
        margin-right: 10px;
    }

    .logo-container.right-logo {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-bar {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    body.mobile-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .dropdown-content {
        flex-direction: column;
    }

    .dropdown-section {
        padding: 0;
        margin-bottom: 20px;
    }

    .logo-container.right-logo {
        display: none;
    }

    .logo-container.left-logo {
        flex: 1;
        text-align: center;
    }

    /* Hide brand divider on mobile for cleaner look */
    .brand-center {
        display: none;
    }
}

/* Enhanced Mobile Navigation Styles */
@media screen and (max-width: 991px) {
    .top-bar {
        flex-wrap: wrap;
        padding: 8px 15px;
        height: 70px;
    }
    
    .logo-container.left-logo {
        flex: 1;
        margin-right: 10px;
    }
    
    .logo-container.right-logo {
        display: none;
    }
    
    .nav-bar {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .search-toggle {
        margin-right: 10px;
    }
    
    .logo-container img {
        height: 45px;
    }
    
    .mobile-nav {
        height: 100vh;
        padding-top: 10px;
    }
    
    .mobile-nav.active {
        left: 0;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-nav-content {
        overflow-y: auto;
        padding-bottom: 80px; /* Add space at bottom of menu */
    }
    
    .mobile-nav-menu {
        padding: 0;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 15px;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-link i {
        margin-right: 12px;
        font-size: 18px;
    }
    
    .mobile-dropdown-toggle {
        padding: 15px;
    }
    
    .mobile-second-items {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    .mobile-second-item a {
        padding: 12px 15px 12px 45px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .top-bar {
        height: 60px;
        padding: 5px 10px;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        font-size: 22px;
    }
    
    .mobile-nav-link {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .mobile-second-item a {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }
    
    .search-toggle {
        position: absolute;
        right: 50px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .sticky-header {
        height: auto;
        min-height: 60px;
    }
    
    .top-bar {
        height: 70px;
        padding: 5px 10px;
    }
    
    /* Improve dropdown transition for touch devices */
    .dropdown-container {
        transition: all 0.2s ease;
    }
    
    /* Enhance mobile menu animations */
    .mobile-nav {
        transition: transform 0.3s ease, left 0.3s ease;
    }
    
    /* Improve mobile menu item spacing */
    .mobile-nav-menu > li {
        margin-bottom: 1px;
    }
}

/* Style for active link without expanding submenu */
.mobile-menu-link.active-link {
    color: var(--turq);
    font-weight: 700;
}

.mobile-submenu-group-list a.active-link {
    color: var(--turq);
    font-weight: 700;
}

/* Improved Service Section Styles */
.HomeServices {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.HomeServices h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blue);
}

.HomeServices .Slide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    flex: 0 0 calc(33.33% - 1rem) !important;
    max-width: 350px;
    min-width: 250px;
    min-height: 220px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
    margin-bottom: 1.5rem;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--turq);
}

.ServiceItem:before {
    margin: 0 auto 0.75rem;
    font-size: 2.2rem;
    color: var(--turq);
    transition: all 0.3s ease;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.service-card:hover:before {
    color: var(--blue);
    transform: scale(1.1);
}

.service-card h3 {
    margin: 0.5rem 0;
    min-height: auto !important;
    font-size: 1.1rem;
    color: var(--blue);
    text-align: center;
}

.service-card p {
    flex-grow: 1;
    margin: 0.5rem auto 1rem;
    text-align: center;
    line-height: 1.4;
    font-size: 0.95rem;
    color: var(--grey);
    height: 4rem; /* Fixed height for description */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 5px;
}

.service-btn {
    width: auto;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.7rem;
    background-color: var(--turq);
    color: white !important;
    text-decoration: none;
    min-width: 70px;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-btn {
    background-color: var(--blue);
}

.service-btn:hover {
    background-color: var(--blue);
    padding: 0.25rem 0.9rem;
    color: white !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.portal-btn:hover {
    background-color: var(--turq);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .service-card {
        flex: 0 0 calc(50% - 1rem) !important;
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 0 100% !important;
        max-width: 100%;
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        margin-bottom: 1rem;
    }
}
