:root {
    --primary-color: #9ed950;
    --text-color: #2b485f;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn {
    font-family: var(--heading-font);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    color: var(--text-color) !important;
}

.display-4 {
    font-weight: 600;
}

.lead {
    font-family: var(--body-font);
    font-weight: 400;
}

.card-title {
    font-family: var(--heading-font);
    font-weight: 500;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
    font-size: 2rem !important;
}

/* Add navbar transition styles */
.navbar-transition {
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
    
    .navbar-nav {
        margin-left: 0 !important;
    }
}

.navbar-nav {
    margin-left: auto;
}



/* Add overflow control to prevent horizontal scroll */
html {
    height: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Base section styles */
.home-section,
.about-section,
.mid-hero-section,
.expertise-section,
.advertising-section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
}

/* About and Contact section colors */
.about-section, .contact-section {
    background-color: #f8f9fa;
    min-height: 100vh;
    width: 100%;
}


.content-wrapper {
    display: flex;
    background: none;
    box-shadow: none;
    padding: 0;
}

/* Keep existing styles for desktop */
.form-side {
    background-color: #ffffff;
    padding: 50px;
    width: 60%;
}

.image-side {
    width: 40%;
    height: 100%;
}

.contact-image-wrapper {
    height: 100%;
    width: 100%;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .form-side {
        width: 100%;
        background-color: transparent;
        padding: 30px 0;
    }
    
    .image-side {
        display: none; /* Hide image on mobile */
    }

    .contact-section .form-control {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 8px 10px;
    }

    /* Adjust container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix potential overflow issues */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Adjust section padding */
    .about-section,
    .contact-section,
    .values-section {
        padding: 60px 0;
    }

    /* Fix image wrapper overflow */
    .about-image-wrapper {
        padding: 10px;
        margin: 0;
    }

    .about-image-wrapper::before {
        width: 85%;
        height: 85%;
    }

    /* Ensure cards don't overflow */
    .card {
        margin: 0 0 20px 0;
    }

    .contact-image-wrapper {
        margin-top: 40px;
    }

    .contact-section .content-wrapper {
        padding: 30px;
    }

    .contact-section .btn-primary {
        width: 80%; /* Increased width */
        display: block; /* Makes button full width of its container */
        margin: 20px auto; /* Centers the button and adds vertical spacing */
        padding: 15px 0; /* Increased padding for better touch target */
    }
}

/* About hero section styles */
.about-hero-section {
    position: relative;
    padding: 200px 0 100px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
}

/* Hero section animations */
.about-hero-section .animate {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-hero-section .animate.active {
    opacity: 1;
}

/* Content sections animations */
.about-content-section .animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.about-content-section .animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Show content if JavaScript is disabled */
.no-js .about-hero-section .animate,
.no-js .about-content-section .animate {
    opacity: 1;
    transform: none;
}

/* Mobile hero section adjustments */
@media (max-width: 991.98px) {
    .about-hero-section {
        padding: 140px 0 60px;  /* Adjusted padding for mobile */
        min-height: 40vh;
    }

    .about-hero-section .display-4 {
        font-size: 2.5rem;  /* Slightly smaller title on mobile */
    }

    /* Adjust navbar z-index to ensure it stays on top */
    .navbar {
        z-index: 1030;
    }

    /* Add space for collapsed navbar */
    .navbar-collapse {
        margin-top: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    /* Advertising section mobile adjustments */
    .advertising-section .display-4 {
        font-size: 3rem;
        line-height: 1.3;
        margin-right: 10px; /* Prevent text from touching edge */
    }

    /* Expertise cards mobile adjustments */
    .expertise-card {
        width: 90%; /* Make cards slightly narrower */
        margin: 0 auto 20px; /* Center cards and add bottom margin */
        padding: 20px !important; /* Reduce padding */
        min-height: auto; /* Allow cards to be shorter */
        max-height: none; /* Remove max height constraint */
    }

    .expertise-card p {
        font-size: 0.9rem; /* Slightly smaller text */
        line-height: 1.6;
    }

    /* Vision Mission section mobile adjustments */
    .vision-mission-section.p-5 {
        padding: 25px !important; /* Reduce padding on mobile */
        margin: 0 15px; /* Add some margin from screen edges */
    }

    .vision-block, .mission-block {
        padding-left: 15px; /* Reduce left padding */
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .expertise-card {
        width: 85%; /* Even narrower on very small screens */
    }


    .vision-mission-section {
        padding: 20px !important; /* Further reduce padding on very small screens */
    }
}

@media (max-width: 575.98px) {
    /* Additional small screen fixes */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-section .btn-primary {
        width: 100%; /* Full width on very small screens */
       
    }
}
.contact-section {
    padding: 100px 0;
        display: flex;
    align-items: center;
    min-height: 90vh;

}

.contact-section label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-color);
    position: static;
    transform: none;
}

.contact-section .form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 0;
    font-size: 16px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.contact-section .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-section textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-section .btn-primary {
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 0 !important;  /* Flat edges */
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: white;
}

.contact-section .btn-primary:hover, 
.contact-section .btn-primary:focus {
    background-color: #8ec840 !important; /* Updated hover color */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Values section background */
.values-section {
    background-color: #ffffff;
    background-image: url('../images/pattern.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

/* Ensure content stays above pattern */
.about-section .container,
.values-section .container,
.contact-section .container,
.expertise-section .container {
    position: relative;
    z-index: 1;
}

.about-section {
    display: flex;
    align-items: center;
    position: relative;
}

.about-section .container {
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 3px solid var(--primary-color);
    border-radius: 4px;
    z-index: 0;
}

.about-image-wrapper img {
    position: relative;
    z-index: 1;
}

.about-section .fa-check-circle {
    color: var(--primary-color);
}

.about-section ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-section .display-4,
.about-section .lead,
.about-section p,
.about-section ul li {
    color: var(--text-color);
}

/* Card styling */
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: -33;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(158, 217, 80, 0.15) 0%,
        rgba(158, 217, 80, 0.05) 30%,
        transparent 70%
    );
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.card:hover::before {
    transform: translateY(0);
}

.card-icon, .card-body {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-icon {
    margin-top: 1rem;
}

.card-icon .text-primary {
    color: var(--primary-color) !important;
}

/* Override existing home section styles */
.home-section {
    background-image: url('../images/business-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 1.5s ease forwards;
    opacity: 0.4 !important;
}

.home-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.home-section .display-4,
.home-section .lead {
    color: #ffffff;
}

/* Flat Button Styling for Home Section */
.home-section .btn-primary {
    background-color: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: #ffffff;
    box-shadow: none;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.home-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.home-section .btn-primary:hover::before {
    left: 0;
}

.home-section .btn-primary:hover, 
.home-section .btn-primary:focus {
    color: white;
    transform: translateY(0);
    box-shadow: none;
}

/* Home section animations */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-section .display-4 {
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.home-section .lead {
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.home-section .btn {
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

/* Overlay animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

/* Material Design Button Styling */
.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none !important;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #8ec840;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Material Design Form Styling */
.form-group {
    margin-bottom: 35px;
    position: relative;
    padding-top: 15px;
}

.form-control {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 12px 0;
    background-color: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

label {
    position: absolute;
    top: 23px;
    left: 10px;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Special styling for textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

textarea.form-control ~ label {
    background-color: transparent;
    padding: 0;
}

.values-section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

.values-section .container {
    width: 100%;
}

.values-section .display-4 {
    color: var(--text-color);
    font-weight: 600;
}

.values-section .lead {
    color: var(--text-color);
}

.home-section, .about-section, .mid-hero-section, .expertise-section, .advertising-section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
}
/* Animation keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation class */
.animate {
    opacity: 0;
}

/* Hero section - only fade */
.about-hero-section .animate.fade {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.3s ease;
}

.about-hero-section .animate.fade.active {
    opacity: 1;
}

/* Content sections - fade up */
.about-content-section .animate.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.about-content-section .animate.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* values section animation */

.values-section .title.active {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}
.values-section .description.active {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.values-section .innovation.active {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}
.values-section .reliability.active {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}
.values-section .partnership.active {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Mid Hero Section */
.mid-hero-section {
    position: relative;
    background-image: url('../images/mid-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mid-hero-section .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(158, 217, 80, 0.85) 0%,
        rgba(43, 72, 95, 0.95) 100%
    );
}

.mid-hero-section .animate-text {
    position: relative;
    display: inline-block;
}

.mid-hero-section .animate-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    animation: fillText 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes fillText {
    0% {
        width: 0;
        left: 0;
    }
    100% {
        width: 100%;
        left: 100%;
    }
}

.mid-hero-section h2,
.mid-hero-section p {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease forwards;
}

.mid-hero-section h2 {
    animation-delay: 0.3s;
}

.mid-hero-section p {
    animation-delay: 0.6s;
}

.mid-hero-section .text-reveal {
    position: relative;
    display: inline-block;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
}

.mid-hero-section .text-reveal.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    animation: revealText 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.mid-hero-section .text-reveal.active::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: white;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    animation: showText 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.mid-hero-section .text-reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes revealText {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 100%;
        left: 100%;
    }
}

@keyframes showText {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.mid-hero-section .animate-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mid-hero-section .animate-button.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .mid-hero-section h2 {
        font-size: 2.5rem;
    }
    
    .mid-hero-section p {
        font-size: 1.25rem;
    }
}

/* Footer styles */
.footer {
    background-color: var(--primary-color);
    padding: 15px 0;
    color: white;
}

.footer p {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-icon i {
    font-size: 18px;
}

/* Expertise Section */
.expertise-section {
    background-color: #ffffff;
    background-image: url('../images/pattern.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.expertise-section .container {
    width: 100%;
}

/* Keep existing expertise card styles */
.expertise-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    height: 365px;
    
  
}
.expertise-section .row .animate {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.expertise-card:after {
    content: "";
    border-radius: 0 20px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background-color: var(--text-color);
    z-index: -1;
    transition: height 0.2s;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

}
.expertise-card:hover:after {
    height: 100%;
}

.experties-section .full-version {
    display: none;
    opacity: 0;
}
.expertise-card .card-icon {
    height: 50px;
    opacity: 1;
    display: flex;
    align-items: self-start;
    justify-content: left;
    transition: all 0.3s ease;
}
.expertise-card:hover .card-icon {
    transform: translateY(-10px);
    opacity: 0;
    display: none;

}

.expertise-card h3 {
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
}

.expertise-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    max-height: 100px;
    overflow: hidden;
    text-align: left;
}

.expertise-card:hover p, .expertise-card:hover h3
{
    overflow: initial;
    color: #ffffff !important;
}
/* Animation for expertise cards */
.expertise-section .animate {
    opacity: 0;
    transform: translateY(30px);
}

.expertise-section .animate.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Add delay for each card */
.expertise-section .col-md-3:nth-child(1) .animate {
    transition-delay: 0.1s;
}

.expertise-section .col-md-3:nth-child(2) .animate {
    transition-delay: 0.2s;
}

.expertise-section .col-md-3:nth-child(3) .animate {
    transition-delay: 0.3s;
}

.expertise-section .col-md-3:nth-child(4) .animate {
    transition-delay: 0.4s;
}

/* Animated Button Styles */
.btn-services {
    position: relative;
    padding: 12px 24px;
    font-size: 1.1rem;
    color: #ffffff !important;  /* Start with white text */
    background: var(--primary-color) !important;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border-radius: 0 !important;
    width: 235px;
    text-align: right !important;
    z-index: 1;
}
.btn-services span {
    float: left;

}
.btn-services span,
.btn-services .arrow {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.btn-services:hover span,
.btn-services:hover .arrow {
    color: var(--text-color) !important; 
}

/* Keep existing hover and glossy effects */
.btn-services:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-services .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-services:hover .arrow {
    transform: translateX(5px);
}

.btn-services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: transform 0.5s ease;
    opacity: 0;
}

.btn-services:hover::before {
    animation: glossy 0.75s ease-out;
}

@keyframes glossy {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0;
    }
}

/* Advertising Section Styles */
.advertising-section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.advertising-section .row {
    width: 100%;
}

.advertising-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .advertising-section {
        padding: 80px 0;
        min-height: auto;
    }
}

.advertising-section .subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advertising-section .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advertising-section .feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.advertising-section .feature-list li i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.advertising-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px; /* Minimum height fallback */
}

.advertising-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
}

/* Make parent div take full height */
.advertising-section .row {
    min-height: 600px;
}

.advertising-section .col-lg-6 {
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .advertising-image-wrapper {
        min-height: 400px;
    }
    
    .advertising-section .row {
        min-height: auto;
    }
}

.advertising-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    border-radius: 4px;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.alert i {
    margin-right: 0.5rem;
}

/* Simpler nav-link hover effect */
#navbarNav li.nav-item .nav-link,
#navbarNav li.nav-item.dropdown .nav-link {  /* Added dropdown selector */
    position: relative;
    padding: 8px 15px;
}

#navbarNav li.nav-item .nav-link::after,
#navbarNav li.nav-item.dropdown .nav-link::after {  /* Added dropdown selector */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#navbarNav li.nav-item .nav-link:hover::after,
#navbarNav li.nav-item.dropdown .nav-link:hover::after {  /* Added dropdown selector */
    width: 100%;
}

/* Remove default dropdown arrow underline */
.dropdown-toggle::after {
    border: none;
    margin: 0;
    vertical-align: middle;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

/* XPG Page Specific Styles */
.partner-intro-section {
    padding: 180px 0;
    position: relative;
    margin-top: 76px;
    display: flex;
    align-items: center;
    background: var(--primary-color) url('../images/business_partners_aipc.jpg') center/cover no-repeat;
    color: #fff;
}

.partner-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-color-rgb), 0.85);
}

.partner-intro-section .container {
    position: relative;
    z-index: 2;
}

.partner-intro-section h1 {
    color: var(--text-color) !important;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 600;
}

.partner-intro-section .lead {
    color: var(--text-color) !important;
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .partner-intro-section {
        padding: 100px 0;
    }
    
    .partner-intro-section h1 {
        font-size: 2.5rem;
    }
}

.partner-spotlight-section {
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #000 !important;
}

.spotlight-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.spotlight-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/xpg-products.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #0c0000 0%, transparent 100%);
}

.spotlight-image::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, #000, transparent);
}

@media (max-width: 991.98px) {
    .spotlight-image {
        width: 100%;
        opacity: 0.2;
    }
    
    .spotlight-overlay {
        width: 100%;
        background: linear-gradient(to bottom, transparent 0%, #000 100%);
    }
    
    .partner-spotlight-section {
        padding: 60px 0;
    }
}

.partner-spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0) 100%);
    pointer-events: none;
}

.partner-highlights {
    padding: 1rem 0;
}

.performance-feature {
    transition: all 0.3s ease;
}

.performance-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.performance-feature p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-xpg-cta {
    background-color: #ea0029 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0;
    height: 60px;
    font-size: 1.25rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 340px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    line-height: 50px !important;
}

.btn-xpg-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.75s ease, opacity 0.2s ease;
}

.btn-xpg-cta:hover {
    background-color: #ff0033 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 0, 41, 0.4);
}

.btn-xpg-cta:hover::before {
    opacity: 1;
    transform: translateX(100%) rotate(45deg);
}

.highlight-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

.highlight-item i {
    color: var(--primary-color);
}

.partner-logo-wrapper {
    position: relative;
    padding: 2rem;
}

.partner-logo {
    max-width: 250px;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.3));
}

.partner-content h2,
.partner-content .lead {
    color: #fff !important;
}

.feature-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.feature-item i {
    color: #ff0000 !important;
}

.partner-image-wrapper {
    position: relative;
    padding: 1rem;
}

.partner-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid rgba(255,0,0,0.3);
    transform: translate(10px, 10px);
    z-index: -1;
}

.partner-image-wrapper img {
    border: 2px solid rgba(255,255,255,0.1);
}

/* XPG Call to Action Section styling */
.partner-cta-section .cta-wrapper {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.partner-cta-section .cta-wrapper h2,
.partner-cta-section .cta-wrapper p {
    color: var(--text-color) !important;
}

.partner-cta-section .animate-button {
    background: var(--primary-color) !important;
    border: none;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.partner-cta-section .animate-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Dropdown Menu Hover Styles */
.navbar .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

.navbar .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile styles for dropdown */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        pointer-events: auto;
    }
    
    .navbar .dropdown.show .dropdown-menu {
        display: block;
    }
}

/* Partner Page Animation Styles */
.partner-intro-section .animate.fade {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.8s ease;
}

.partner-intro-section .animate.fade.active {
    opacity: 1;
}

.partner-middle-section .animate.fade-up,
.partner-spotlight-section .animate.fade-up,
.partner-cta-section .animate.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.partner-middle-section .animate.fade-up.active,
.partner-spotlight-section .animate.fade-up.active,
.partner-cta-section .animate.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.partner-spotlight-section .partner-logo-wrapper.animate.fade {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.8s ease;
}

.partner-spotlight-section .partner-logo-wrapper.animate.fade.active {
    opacity: 1;
}

.feature-item {
    opacity: 1;
    transform: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Partner Page Styles */
.partner-intro-section {
    padding: 180px 0;
    position: relative;
    margin-top: 76px;
    display: flex;
    align-items: center;
    background-image: url('../images/business_partners_aipc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--primary-color);
    border-bottom: 2px solid #ea0029;
}

.partner-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92));
}

.partner-middle-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.partner-middle-section h2 {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
    font-size: 2rem;
    opacity: 0.8;
}

@media (max-width: 991.98px) {
    .partner-middle-section {
        padding: 60px 0;
    }
    
    .partner-middle-section h2 {
        font-size: 1.5rem;
    }
}

.partner-spotlight-section {
    background: #fff;
    position: relative;
}

.partner-logo-wrapper {
    margin-bottom: 2rem;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-features {
    margin-top: 2rem;
}

.feature-item {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.partner-image-wrapper {
    position: relative;
    padding: 1rem;
}

.partner-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    transform: translate(1rem, 1rem);
    border-radius: 4px;
}

.partner-cta-section {
    background-color: #f8f9fa;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--text-color) 0%, #1a324d 100%);
    color: white;
    padding: 4rem 2rem !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-wrapper h2 {
    color: white !important;
}

.cta-wrapper .animate-button {
    background: var(--primary-color) !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-wrapper .animate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 991.98px) {
    .partner-intro-section {
        padding-top: 100px;
    }
    
    .partner-logo {
        max-width: 150px;
    }
    
    .partner-image-wrapper {
        margin-top: 2rem;
    }
    
    .cta-wrapper {
        padding: 2rem 1rem !important;
    }
}

/* Partner Pages Styles */
.partner-hero-section {
    padding-top: 120px;
    background-color: #f8f9fa;
    position: relative;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    margin-bottom: 15px;
    border-radius: 4px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .partner-hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .partner-hero-section img {
        margin-top: 30px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MarsRhino specific styles */
.btn-marsrhino-cta {
    background-color: #4a1722 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0;
    height: 60px;
    font-size: 1.25rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 340px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    line-height: 50px;
}

.btn-marsrhino-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.75s ease, opacity 0.2s ease;
}

.btn-marsrhino-cta:hover {
    background-color: #692231 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 23, 34, 0.4);
}

.btn-marsrhino-cta:hover::before {
    opacity: 1;
    transform: translateX(100%) rotate(45deg);
}

/* MarsRhino specific colors */
:root {
    --marsrhino-primary: #4a1722;
    --marsrhino-hover: #692231;
    --marsrhino-text: #ffffff;
}

.marsrhino-section {
    background-color: var(--marsrhino-primary);
    color: var(--marsrhino-text);
}

.marsrhino-section .partner-content h2,
.marsrhino-section .partner-content .lead {
    color: var(--marsrhino-text) !important;
}

.marsrhino-section .feature-item i {
    color: #ff9999 !important;
}

.marsrhino-section .spotlight-image {
    opacity: 0.2;
    background-image: url('../images/marsrhino-products.jpg');
}

.marsrhino-section::before {
    background: linear-gradient(45deg, rgba(74,23,34,0.1) 0%, rgba(74,23,34,0) 100%);
}

.marsrhino-section .partner-logo {
    filter: drop-shadow(0 0 10px rgba(74,23,34,0.3));
}

/* Product cards for MarsRhino */
.marsrhino-product-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(74,23,34,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(74,23,34,0.1);
}

.marsrhino-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(74,23,34,0.2);
    border-color: rgba(74,23,34,0.2);
}

    .product-card img {
        height: 150px;
    }


@media (max-width: 576px) {
    .partner-hero-section {
        padding-top: 80px;
    }

    .product-card {
        padding: 15px;
    }

    .product-card img {
        height: 120px;
    }
}