/* Main Styles for RCIT Website */

/* Font Import */
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/google-sans/ProductSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/google-sans/ProductSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/google-sans/ProductSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/google-sans/ProductSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/google-sans/ProductSans-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

:root {
    --primary: #009FE3;
    --secondary: #000000;
    --dark: #1A1A1A;
    --light: #F5F5F5;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --font-primary: 'Product Sans', sans-serif;
}

/* Section Background Colors */
.bg-about-section {
    background-image: linear-gradient(180deg, #000A16 0%, #013069 100%);
    color: white;
}

.bg-case-section {
    background-image: linear-gradient(180deg, #013069 0%, #013674 100%);
    color: white;
}

.bg-service-section {
    background-image: linear-gradient(180deg, #013674 0%, #055dc7 100%);
    color: white;
}

.bg-cta1-section {
    background-image: linear-gradient(180deg, #055dc7 0%, #3681da 100%);
    color: white;
}

.bg-products-section {
    background-image: linear-gradient(180deg, #3681da 0%, #4c91e3 100%);
    color: white;
}

.bg-testimonial-section {
    background-image: linear-gradient(180deg, #4c91e3 0%, #2172d2 100%);
    color: white;
}

.bg-certificate-section {
    background-image: linear-gradient(180deg, #2172d2 0%, #6da9f1 100%);
    color: white;
}

.bg-cta2-section {
    background-image: linear-gradient(180deg, #6da9f1 0%, #cae2fe 65%, #a9d0fd 100%);
    color: white;
}

.bg-industries-section {
    background-image: linear-gradient(180deg, #a9d0fd 0%, #60a9fc 100%);
    color: #013069;
}

.bg-technology-section {
    background-image: linear-gradient(180deg, #60a9fc 0%, #2077de 100%);
    color: #013069;
}

.bg-blog-section {
    background-image: linear-gradient(180deg, #2077de 0%, #0358be 100%);
    color: white;
}

.bg-faq-section {
    background-image: linear-gradient(180deg, #0358be 0%, #000a16 100%);
    color: white;
}

.bg-dark-section {
    background-color: #000a16;
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
}

/* Hero section typography */
.hero-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 58px;
    line-height: 72px;
    max-width: 100%;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 22px;
    line-height: 33px;
    max-width: 100%;
    margin-bottom: 2rem;
    color: white;
}

.hero-button {
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    padding: 12px 28px;
    color: white;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 46px;
        line-height: 60px;
    }
    
    .hero-description {
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
        line-height: 52px;
    }
    
    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
        line-height: 42px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .hero-button {
        font-size: 14px;
        line-height: 20px;
        padding: 10px 20px;
    }
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

/* Mega menu styles */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    background-color: white;
    margin-top: 20px; /* Increased from default to create more gap */
}

/* Position the Services mega menu to start from the logo area */
.nav-services .mega-menu {
    left: -215px !important;  /* This aligns with the logo position */
}

/* Position the Products mega menu to start from the logo area */
.nav-products .mega-menu {
    left: -215px !important;  /* This aligns with the logo position */
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced dropdown menu items with icons */
.mega-menu a {
    transition: all 0.3s ease;
    color: var(--gray); /* Ensure links are visible on white background */
}

.mega-menu h3 {
    color: var(--dark) !important; /* Force dark color for headings */
}

.mega-menu p {
    color: var(--gray) !important; /* Force gray color for paragraphs */
}

.mega-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.mega-menu .rounded-xl {
    border-radius: 1rem;
}

.mega-menu .rounded-full {
    transition: all 0.3s ease;
}

.mega-menu a:hover .rounded-full.bg-blue-50 {
    background-color: var(--primary);
    color: white;
}

/* Menu item hover effect */
.mega-menu a.group {
    position: relative;
    overflow: hidden;
}

.mega-menu a.group:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary);
    transition: height 0.3s ease;
}

.mega-menu a.group:hover:after {
    height: 100%;
}

/* Fix for mega menu list items and icons */
.mega-menu li a {
    color: var(--gray) !important;
}

.mega-menu li a:hover {
    color: var(--primary) !important;
}

.mega-menu li a i {
    color: var(--primary) !important;
}

.mega-menu .text-gray-900 {
    color: var(--dark) !important;
}

.mega-menu .text-gray-500, 
.mega-menu .text-gray-600, 
.mega-menu .text-gray-700 {
    color: var(--gray) !important;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(90deg, var(--primary) 0%, #00C2FF 100%);
}

.gradient-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0051D8 100%);
    border-radius: 20px;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #0080B3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* Add styles for scrolled state of btn-secondary */
header .btn-secondary {
    background-color: transparent; 
    color: white;
    border: 1px solid white;
}

header .btn-secondary.scrolled {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

header .btn-secondary.scrolled:hover {
    background-color: var(--primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Mobile menu enhancements */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 100vh;
    overflow-y: auto;
}

#mobile-menu .rounded-lg {
    transition: all 0.3s ease;
}

#mobile-menu .rounded-lg:hover {
    background-color: #f1f5f9;
}

#mobile-menu .rounded-full {
    transition: all 0.3s ease;
}

#mobile-menu a:hover .rounded-full {
    background-color: var(--primary);
    color: white;
}

/* Mobile menu dropdown animations */
#mobile-menu [x-show] {
    transition: all 0.3s ease;
}

/* Mobile nav button animation */
#mobile-menu-button {
    position: relative;
    z-index: 30;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu-button svg {
    transition: all 0.3s ease;
}

#mobile-menu-button.active svg {
    transform: rotate(90deg);
}

/* Fix for mobile menu going out of the screen */
#mobile-menu {
    position: fixed;
    top: 72px; /* Adjusted to align with the header */
    left: 0;
    right: 0;
    max-width: 100vw; /* Prevent horizontal overflow */
    height: calc(100vh - 72px); /* Full height minus header */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    z-index: 50; /* Ensure it stays above other elements */
    background-color: white; /* Ensure visibility */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.overflow-hidden {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Responsive menu adjustments */
@media (max-width: 1023px) {
    #mobile-menu {
        background-color: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
    }

    #mobile-menu.hidden {
        display: none;
    }
    
    /* Improve mobile dropdown spacing */
    #mobile-menu .space-y-4 > div {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
        padding-bottom: 0.5rem;
    }
    
    #mobile-menu button {
        padding: 0.75rem 0;
        width: 100%;
        text-align: left;
    }
    
    #mobile-menu a {
        display: block;
        padding: 0.5rem 0;
    }
    
    #mobile-menu .space-y-2 a {
        padding: 0.5rem 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improved image loading */
    img {
        image-rendering: optimizeQuality;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Smooth scrolling for mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
    
    /* Optimize mega menu for mobile */
    .mega-menu {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Section styles */
.section-padding {
    padding: 5rem 0;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animated counter */
.counter {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, #fff, #00C2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Case studies rolling effect */

/* Case Study Navigation Button Styles */
.case-studies-nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-study-nav-btn {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.case-study-nav-btn:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.case-study-nav-btn.active {
    color: white;
    font-weight: 500;
}

.case-study-nav-btn.active:after {
    width: 100%;
}

.case-study-nav-btn:hover {
    color: white;
}

.case-study-nav-btn:hover:after {
    width: 50%;
}

/* Case Study Slide Animation */
.case-study-slide {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(20px);
    display: none;
}

.case-study-slide.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

/* Responsive adjustments for case study navigation */
@media (max-width: 768px) {
    .case-studies-nav-container {
        overflow: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
    }
    
    .case-studies-nav-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .case-study-nav-btn {
        white-space: nowrap;
    }
}

/* Testimonial slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

/* Whatsapp chat button animation */
.chat-button {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(0, 159, 227, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 159, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0);
    }
}

/* Sticky call button */
.sticky-call {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: all 0.3s ease;
}

.sticky-call:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Hide call back button on mobile devices */
@media (max-width: 767px) {
    .sticky-call {
        display: none;
    }
}

/* Vertical text for call back button */
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Sticky WhatsApp button */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Contact form two-column layout */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-left {
    background-color: var(--primary);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-right {
    background-color: white;
    padding: 3rem;
}

/* FAQ accordion styles */
.faq-accordion-item {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.faq-accordion-button {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.faq-accordion-button:hover {
    background-color: #f5f9ff;
}

.faq-accordion-button.active {
    background-color: #f0f7ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-accordion-button.active .faq-icon {
    transform: rotate(45deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-accordion-content.active {
    max-height: 400px;
}

/* Add a subtle shadow effect for active FAQ items */
.faq-accordion-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 159, 227, 0.1), 0 2px 4px -1px rgba(0, 159, 227, 0.06);
}

/* Industry server section styles */
.industry-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 300px;
}

.industry-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.industry-card:hover .industry-card-overlay {
    opacity: 1;
}

/* Blog card styles */
.blog-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    transition: all 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

/* Tech stack filter styles */
.tech-category {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item {
    transition: all 0.3s ease;
}

/* PopUp Styles */
.popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0080B3;
}

/* Trusted By Section */
.home-trusted-title h2 span {
    min-width: 150px;
    display: inline-flex;
    background: linear-gradient(90deg, #006BEF 0%, rgba(13, 16, 17, 0) 90%);
    border-radius: 5px;
    padding: 8px 15px; /* Increased padding */
    font-size: 1.2rem; /* Larger font */
}

/* Logo Slider Animation */
.trusted-logo-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.logos-slide {
    display: flex;
    animation: slide 30s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Trusted by section hover effect */
.trusted-logo-slider:hover .logos-slide {
    animation-play-state: paused;
}

/* Logo items */
.logos-slide > div {
    min-width: 180px; /* Increased from 160px */
    margin: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05); /* Subtle background */
    border-radius: 8px;
    padding: 10px;
    height: 90px; /* Fixed height for consistency */
}

.logos-slide img {
    filter: brightness(1.3) grayscale(100%);
    opacity: 0.9;
    transition: all 0.3s ease;
    height: auto;
    width: 140px; /* Increased from 120px */
    max-height: 70px; /* Increased from 60px */
    object-fit: contain;
    padding: 5px;
    margin: 0 auto;
}

.logos-slide img:hover {
    filter: brightness(1.5) grayscale(0);
    opacity: 1;
    transform: scale(1.15); /* Slightly stronger hover effect */
}

/* About section - Changing Text Animation */
.changing-text {
    display: inline-block;
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-weight: 900;
    font-size: 70px;
    line-height: 1.1;
    background: linear-gradient(90deg, #006BEF, #00C2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Responsive changing text */
@media (max-width: 1200px) {
    .changing-text {
        font-size: 56px;
    }
}

@media (max-width: 992px) {
    .changing-text {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .changing-text {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .changing-text {
        font-size: 32px;
    }
}

/* About section - Image Gallery */
.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-height: 350px; /* Reduced height */
    max-width: 90%; /* Make it smaller */
    margin: 0 auto; /* Center it */
    background-color: #011536; /* Match background to prevent empty space showing */
}

.gallery-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: opacity 0.8s ease;
}

.gallery-image.active {
    display: block;
}

/* Typography for About section */
.about-section-title {
    font-weight: 500;
    font-size: 44px;
    line-height: 53px;
    margin-bottom: 1.5rem;
    color: white;
}

.about-paragraph {
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

/* Counter Cards Animation */
.counter-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.counter-card:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #006BEF 0%, rgba(0, 159, 227, 0.1) 100%);
    border-radius: inherit;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.6s ease;
}

.counter-card:hover:before {
    transform: scale(1);
}

.counter-card:hover {
    transform: translateY(-15px) scale(1.05);
}

.counter {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, #fff, #00C2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.counter-finished {
    animation: pulse 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Home CTA 1 | Start */
.home_cta1 .inner {
  padding: 50px 60px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right bottom;
  align-items: flex-start;
  border-radius: 20px;
}
.home_cta1 h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
}
.home_cta1 p {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #fff;
}
.home_cta1 .btnn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.home_cta1 .btnn:hover {
  background-color: #0080B3;
  transform: translateY(-2px);
}

@media screen and (max-width: 1399px) {
  .home_cta1 .inner {
    padding: 40px 50px;
    min-height: 260px;
  }
  .home_cta1 h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .home_cta1 p {
    font-size: 26px;
    margin-bottom: 25px;
  }
}

@media screen and (max-width: 1200px) {
  .home_cta1 p {
    font-size: 22px;
  }
  .home_cta1 .inner {
    min-height: 230px;
  }
}

@media screen and (max-width: 767px) {
  .home_cta1 .inner {
    padding: 30px 20px;
    min-height: 400px;
    justify-content: flex-end;
    background-position: right -40px center;
    border-radius: 10px;
    position: relative;
    background-image: url("../img/mobile_expertise.png") !important;
    background-position: right bottom;
  }
  .home_cta1 .inner h2 {
    font-size: 30px;
  }
  .home_cta1 p {
    font-size: 22px;
    margin-bottom: 20px;
  }
}
/* Home CTA 1 | End */

/* Home CTA 2 | Start */
.home_cta2 .conta_iner {
  padding: 50px;
  position: relative;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
}

.home_cta2 .conta_iner::after {
  content: "";
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url('../img/cta_bg2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: url(#round);
  z-index: 1;
}

.home_cta2 .conta_iner>* {
  position: relative;
  z-index: 3;
}

.home_cta2 .conta_iner h2 {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
}

.home_cta2 p {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #fff;
}

.home_cta2 .btn_flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.home_cta2 .btnn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home_cta2 .btnn:hover {
  background-color: #0080B3;
  transform: translateY(-2px);
}

.home_cta2 .text_white {
  color: #fff;
}

@media screen and (max-width: 1449px) {
  .home_cta2 .conta_iner {
    padding: 40px;
    min-height: 260px;
  }
}

@media screen and (max-width: 1200px) {
  .home_cta2 .conta_iner {
    min-height: 260px;
  }
  .home_cta2 p {
    font-size: 22px;
  }
  .home_cta2 .btn_flex {
    gap: 15px;
  }
}

@media screen and (max-width: 992px) {
  .home_cta2 .conta_iner h2 {
    margin-bottom: 20px;
  }
  .home_cta2 p {
    font-size: 20px;
  }
  .home_cta2 .conta_iner {
    min-height: 1px;
  }
}

@media screen and (max-width: 767px) {
  .home_cta2 .conta_iner {
    padding: 30px 20px;
    justify-content: flex-end;
    text-align: left;
    min-height: 390px;
  }
  .home_cta2 .btn_flex{
    align-items: flex-start;
    justify-content: flex-start;
  }
  .home_cta2 .conta_iner h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin-left: 0;
    text-align: left;
    max-width: 100%;
  }
  .home_cta2 .conta_iner::after {
    background-image: url("../img/cta_bg2_mob.png");
    background-position: bottom right;
    border-radius: 24px;
  }
  .home_cta2 .btn_flex {
    gap: 10px;
    flex-direction: column;
  }
  .home_cta2 .btn_flex .btnn {
    min-width: 200px;
  }
  .home_cta2 p {
    font-size: 18px;
  }
}
/* Home CTA 2 | End */

/* Popup form country flags and dropdown */
.country-selector {
    position: relative;
}

.country-selector .selected-flag {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}

.country-selector .selected-flag:hover {
    background-color: #f1f5f9;
}

.country-selector .flag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 280px;
    display: none;
}

.country-selector.open .flag-dropdown {
    display: block;
}

.country-selector .country-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.country-selector .country-option:hover {
    background-color: #f1f5f9;
}

.country-selector .country-option img {
    width: 20px;
    margin-right: 8px;
}

.country-selector .country-option .country-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.country-selector .country-option .country-code {
    margin-left: auto;
    color: #64748b;
    font-size: 0.875rem;
}

.country-selector .search-input {
    width: 100%;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.country-selector .flag-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-selector .flag-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.country-selector .flag-dropdown::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.country-selector .flag-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Rich Content Styling for Admin Dashboard Content */
.rich-content,
.page-content {
    line-height: 1.75;
    color: #374151;
}

.rich-content h1,
.page-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.rich-content h1:first-child,
.page-content h1:first-child {
    margin-top: 0;
}

.rich-content h2,
.page-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.rich-content h2:first-child,
.page-content h2:first-child {
    margin-top: 0;
}

.rich-content h3,
.page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.rich-content h4,
.page-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.rich-content h5,
.page-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.rich-content h6,
.page-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.rich-content p,
.page-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.rich-content ul,
.page-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.rich-content ol,
.page-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.rich-content li,
.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #374151;
}

.rich-content ul ul,
.rich-content ol ol,
.page-content ul ul,
.page-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.rich-content ul ul,
.page-content ul ul {
    list-style-type: circle;
}

.rich-content ul ul ul,
.page-content ul ul ul {
    list-style-type: square;
}

.rich-content strong,
.rich-content b,
.page-content strong,
.page-content b {
    font-weight: 600;
    color: #111827;
}

.rich-content em,
.rich-content i,
.page-content em,
.page-content i {
    font-style: italic;
}

.rich-content a,
.page-content a {
    color: #009FE3;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.rich-content a:hover,
.page-content a:hover {
    color: #0284c7;
    text-decoration: none;
}

.rich-content blockquote,
.page-content blockquote {
    border-left: 4px solid #009FE3;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
}

.rich-content code,
.page-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #1f2937;
}

.rich-content pre,
.page-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.rich-content pre code,
.page-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.rich-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
}

.rich-content th,
.page-content th {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
}

.rich-content td,
.page-content td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    color: #374151;
}

.rich-content tr:nth-child(even),
.page-content tr:nth-child(even) {
    background-color: #f9fafb;
}

.rich-content hr,
.page-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.rich-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rich-content .text-center,
.page-content .text-center {
    text-align: center;
}

.rich-content .text-right,
.page-content .text-right {
    text-align: right;
}

.rich-content .text-left,
.page-content .text-left {
    text-align: left;
}

/* Special content sections */
.rich-content .highlight,
.page-content .highlight {
    background-color: #fef3c7;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    margin: 1rem 0;
}

.rich-content .note,
.page-content .note {
    background-color: #dbeafe;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    margin: 1rem 0;
}

.rich-content .warning,
.page-content .warning {
    background-color: #fecaca;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #ef4444;
    margin: 1rem 0;
}

.rich-content .success,
.page-content .success {
    background-color: #dcfce7;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #22c55e;
    margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rich-content h1,
    .page-content h1 {
        font-size: 1.875rem;
    }
    
    .rich-content h2,
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .rich-content h3,
    .page-content h3 {
        font-size: 1.25rem;
    }
    
    .rich-content ul,
    .rich-content ol,
    .page-content ul,
    .page-content ol {
        margin-left: 1rem;
    }
    
    .rich-content table,
    .page-content table {
        font-size: 0.875rem;
    }
    
    .rich-content th,
    .rich-content td,
    .page-content th,
    .page-content td {
        padding: 0.5rem;
    }
}