body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bs-dark);
    color: var(--bs-light);
    line-height: 1.6;
}

:root {
    --bs-primary: #32CD32; /* Lime Green */
    --bs-secondary: #212529; /* Darker Gray */
    --bs-dark: #121212; /* Very Dark Gray */
    --bs-light: #f8f9fa;
    --bs-orange-yellow: #FFD700; /* Gold */
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-dark);
}

.btn-primary:hover {
    background-color: #28a745; /* Slightly darker green */
    border-color: #28a745;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.navbar-brand .logo-img {
    height: 40px;
}

.navbar-brand .site-title {
    font-size: 1.8rem;
    color: var(--bs-primary);
}

.navbar-nav .nav-link {
    color: var(--bs-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.offcanvas {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

.offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--bs-secondary);
}

.offcanvas .offcanvas-title {
    color: var(--bs-primary);
}

.offcanvas .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Headings Responsive */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.site-title {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    .site-title { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    .site-title { font-size: 1.2rem; }
    .navbar-brand .logo-img {
        height: 30px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url('media/content/Building-Icon-Estate-Real-Concept.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-section .form-control-lg {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid var(--bs-primary);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
}

.hero-section .form-control-lg::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-section .btn-lg {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.hero-section .img-fluid {
    max-height: 400px;
    object-fit: cover;
}

/* About Section */
.about-section .img-fluid {
    max-height: 350px;
    object-fit: cover;
}

.about-section .bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.about-section .h-100 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Services Section */
.services-section .nav-pills .nav-link {
    color: var(--bs-dark);
    background-color: var(--bs-light);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 500;
}

.services-section .nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: var(--bs-primary);
}

.services-section .nav-pills .nav-link.active-teal {
    background-color: var(--bs-primary);
    color: var(--bs-dark);
    border-color: var(--bs-primary);
}

.services-section .tab-content {
    background-color: var(--bs-white);
    color: var(--bs-dark);
    border-radius: 0.5rem;
}

.services-section .tab-pane img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
}

/* FAQ Section */
.faq-section .accordion-item {
    border: none;
}

.faq-section .accordion-button {
    background-color: var(--bs-white);
    color: var(--bs-dark);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.faq-section .accordion-body {
    background-color: var(--bs-white);
    color: var(--bs-dark);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding-top: 0;
}

.faq-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) .faq-icon-circle {
    transform: rotate(45deg);
}

.bg-orange-yellow {
    background-color: var(--bs-orange-yellow) !important;
}

/* Features Section */
.features-section .feature-item {
    border: 1px solid #e0e0e0;
}

.features-section .feature-item h5 {
    cursor: pointer;
    margin-bottom: 0;
    padding: 0;
}

.features-section .feature-item h5 i {
    transition: transform 0.3s ease;
}

.features-section .feature-item h5[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Portfolio Section */
.portfolio-section .img-fluid {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.portfolio-section .portfolio-list li {
    position: relative;
}

.portfolio-section .portfolio-list {
    counter-reset: list-item;
}

/* Stats Section */
.stats-section {
    background-image: url('media/content/Technology-With-Finance-Digital-Of-Business-Working-Perceptive-Graph-Businessman.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.stats-section .divider-orange {
    width: 50px;
    height: 3px;
    background-color: var(--bs-orange-yellow);
    margin-top: 1rem;
}

/* Careers Section */
.careers-section .accordion-item {
    border: 1px solid #e0e0e0;
}

.careers-section .accordion-button {
    background-color: var(--bs-white);
    color: var(--bs-dark);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.careers-section .accordion-button:not(.collapsed) {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

.careers-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.careers-section .accordion-body {
    background-color: var(--bs-white);
    color: var(--bs-dark);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding-top: 0;
}

.careers-section .accordion-button i {
    transition: transform 0.3s ease;
}

.careers-section .accordion-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Contact Form Section */
.contact-form .card {
    border: none;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bs-light);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    color: var(--bs-light);
}

.contact-form .form-select option {
    background-color: var(--bs-secondary);
    color: var(--bs-light);
}

/* Footer Section */
.footer-section {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    padding-bottom: 70px; /* To prevent cookie banner from overlapping */
}

.footer-section a {
    color: var(--bs-white-50);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.footer-section .input-group .form-control {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--bs-primary);
    color: var(--bs-light);
}

.footer-section .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section .input-group .btn-primary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    z-index: 1050;
    border: 1px solid var(--bs-primary);
}

.cookie-banner .card-title {
    font-size: 1.1rem;
}

.cookie-banner .card-text {
    font-size: 0.85rem;
}

.modal-content {
    border: 1px solid var(--bs-primary);
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    overflow-y: auto;
}

/* Global box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure buttons don't have underline */
.btn {
    text-decoration: none !important;
}

/* Responsive Navigation */
@media (max-width: 1199.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 1200px) {
    .navbar-nav {
        flex-direction: row;
        white-space: nowrap;
        overflow-x: auto;
    }
    .navbar-nav .nav-item {
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section .input-group {
        flex-direction: column;
    }
    .hero-section .form-control-lg,
    .hero-section .btn-lg {
        width: 100%;
        border-radius: 0.5rem !important;
        margin-bottom: 0.5rem;
    }
    .hero-section .btn-lg {
        margin-bottom: 0;
    }
    .hero-section .input-group .btn-lg {
        margin-top: 0.5rem;
    }

    .services-section .nav-pills {
        margin-bottom: 1.5rem;
    }

    .faq-section .accordion-item,
    .features-section .feature-item,
    .careers-section .accordion-item {
        margin-bottom: 1rem;
    }

    .stats-section .col-md-3 {
        margin-bottom: 2rem !important;
    }
    .stats-section .divider-orange {
        margin-top: 0.5rem;
    }

    .footer-section {
        padding-bottom: 20px; /* Less padding on mobile if cookie banner is handled */
    }

    .cookie-banner {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}
/* New stock styles for content within .rightsFieldUnit */

/* Parent container padding and top margin */
.rightsFieldUnit {
    padding: 20px; /* Internal padding for all sides */
    margin-top: 30px; /* Space from the element above */
    /* You might want to add margin-left/right if it's not full width, e.g., margin: 30px 20px 0; */
}

/* Heading styles - keeping font sizes moderate as requested */
.rightsFieldUnit h1 {
    font-size: 1.8em; /* Slightly larger than body text, but not excessively big */
    font-weight: bold; /* Standard heading weight */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    line-height: 1.2; /* Tighter line height for headings */
}

.rightsFieldUnit h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.3;
}

.rightsFieldUnit h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.4;
}

.rightsFieldUnit h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.rightsFieldUnit h5 {
    font-size: 1em; /* Same as body text, but bold and with heading margins */
    font-weight: bold;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    line-height: 1.6;
}

/* Paragraph styles */
.rightsFieldUnit p {
    font-size: 1em; /* Standard body text size */
    line-height: 1.6; /* Good readability */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.rightsFieldUnit ul {
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for bullet points */
    list-style-type: disc; /* Default bullet style */
}

/* List item styles */
.rightsFieldUnit li {
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.6; /* Good readability for list text */
}
