/********** Template CSS **********/
:root {
    --primary: #5e1919;
    --secondary: #3f4547;
    --light: #F2F2F2;
    --dark: #111111;
    --bs-primary: #5e1919;
    --bs-secondary: #3f4547;
}

/* Global Font Family - Montserrat for all text */
* {
    font-family: 'Montserrat', sans-serif !important;
}

body {
    font-family: 'Montserrat', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
}

p, span, div, a, button, input, textarea, select, label {
    font-family: 'Montserrat', sans-serif !important;
}

/* Global Text Alignment - Justify for all paragraphs */
p {
    text-align: justify !important;
    line-height: 1.6;
}

/* Justify text for common content classes */
.text-content,
.description,
.content,
.about-text,
.service-description,
.feature-description,
.team-description,
.testimonial-text,
.blog-content,
.article-content,
.card-text,
.section-description,
.tab-description,
.metric__description,
.text-preview,
.text-full,
.description-text,
.feature-text,
.service-content p,
.tab-info p,
.foundation-content p,
.team-content p {
    text-align: justify !important;
}

/* Specific justify rules for different sections */
.carousel-caption p,
.about-section p,
.service-section p,
.team-section p,
.testimonial-section p,
.contact-section p,
.footer p {
    text-align: justify !important;
}

/* Justify for Bootstrap components */
.card-body p,
.modal-body p,
.accordion-body p,
.tab-pane p {
    text-align: justify !important;
}

/* Exceptions - Elements that should NOT be justified */
h1, h2, h3, h4, h5, h6,
.btn,
.navbar-nav,
.breadcrumb,
.pagination,
.badge,
.alert,
.form-control,
.form-label,
.nav-link,
.dropdown-menu,
.list-group-item,
.table,
.metric__number,
.metric__label,
.feature-title,
.service-title,
.section-title,
.team-title,
.footer .btn.btn-link {
    text-align: inherit !important;
}

/* Center alignment for specific elements */
.text-center,
.text-center p {
    text-align: center !important;
}

/* Right alignment for specific elements */
.text-end,
.text-end p,
.text-right,
.text-right p {
    text-align: right !important;
}

/* Left alignment for specific elements */
.text-start,
.text-start p,
.text-left,
.text-left p {
    text-align: left !important;
}

/* Additional justify rules for content areas */
.container p,
.container-fluid p,
.row p,
.col p,
.col-md p,
.col-lg p,
.col-sm p,
.col-xl p {
    text-align: justify !important;
}

/* Justify for specific content sections */
.about-content p,
.service-content p,
.feature-content p,
.project-content p,
.news-content p,
.blog-post p,
.article p,
.content-area p,
.main-content p {
    text-align: justify !important;
}

/* Justify for long text content */
p:not(.short-text):not(.btn):not(.nav-link):not(.breadcrumb-item):not(.badge):not(.alert) {
    text-align: justify !important;
}

/* Override justify for specific UI elements that should remain centered/left/right */
.navbar p,
.nav p,
.dropdown p,
.modal-header p,
.modal-footer p,
.card-header p,
.card-footer p,
.alert p,
.badge p,
.btn p,
.pagination p,
.breadcrumb p {
    text-align: inherit !important;
}

/* Enhanced justify rules for Arabic and English text */
[lang="ar"] p,
[lang="en"] p,
.arabic-text p,
.english-text p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.1em;
}

/* Justify for content in different page sections */
.page-content p,
.section-content p,
.content-wrapper p,
.text-wrapper p,
.description-wrapper p {
    text-align: justify !important;
}

/* Specific justify for common content blocks */
.lead,
.intro-text,
.summary-text,
.details-text {
    text-align: justify !important;
}

/* Ensure long paragraphs are justified */
p[style*="text-align: justify"],
.justify-text,
.justified {
    text-align: justify !important;
}

/* Force justify on all paragraph-like elements */
div[class*="text"] p,
div[class*="content"] p,
div[class*="description"] p,
section p:not(.btn):not(.nav-link):not(.badge) {
    text-align: justify !important;
}

/* Final comprehensive justify rules */
.container-xxl p,
.container-xl p,
.container-lg p,
.container-md p,
.container-sm p,
.py-5 p,
.py-4 p,
.py-3 p,
.my-5 p,
.my-4 p,
.my-3 p {
    text-align: justify !important;
}

/* Justify for all main content areas */
main p,
article p,
.main p,
.content p,
.post p,
.entry p {
    text-align: justify !important;
}

/* Override for very short text (less than 50 characters) */
p[data-short="true"],
.short-paragraph,
.one-liner {
    text-align: center !important;
}

/* Responsive justify - maintain on all screen sizes */
@media (max-width: 1200px) {
    p {
        text-align: justify !important;
    }
}

@media (max-width: 992px) {
    p {
        text-align: justify !important;
    }
}

@media (max-width: 768px) {
    p {
        text-align: justify !important;
    }
}

@media (max-width: 576px) {
    p {
        text-align: justify !important;
    }
}

/* ========== MOBILE RESPONSIVE IMPROVEMENTS ========== */

/* Global Mobile Font Sizes */
@media (max-width: 768px) {
    /* Main Headings - Reduce size for mobile */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.7rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.6rem !important;
    }

    h5 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    h6 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Paragraph text */
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    /* Images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Container padding */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section padding */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - even smaller fonts */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }

    h4 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }

    h5 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    h6 {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    /* Smaller paragraph text */
    p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    /* Tighter container padding */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Reduced section padding */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ========== MOBILE IMAGE OPTIMIZATION ========== */

/* Responsive Images for all screen sizes */
@media (max-width: 992px) {
    /* Carousel images */
    .carousel-item img {
        height: 400px !important;
        object-fit: cover !important;
    }

    /* Service images */
    .service-image-container {
        height: 250px !important;
    }

    /* Team images */
    .team-item img {
        height: 250px !important;
        object-fit: cover !important;
    }

    /* Feature icons */
    .feature-icon {
        width: 70px !important;
        height: 70px !important;
    }

    /* Metric circles */
    .metric__circle {
        width: 85px !important;
        height: 85px !important;
    }
}

@media (max-width: 768px) {
    /* Carousel images for tablets */
    .carousel-item img {
        height: 300px !important;
    }

    /* Service images */
    .service-image-container {
        height: 200px !important;
    }

    /* Team images */
    .team-item img {
        height: 220px !important;
    }

    /* Feature icons */
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
    }

    /* Metric circles */
    .metric__circle {
        width: 75px !important;
        height: 75px !important;
    }

    /* About page images */
    .about img {
        height: 200px !important;
        object-fit: cover !important;
    }

    /* Gallery images */
    .gallery-item img {
        height: 150px !important;
        object-fit: cover !important;
    }
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .navbar-brand img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Small screens (mobile) */
@media (max-width: 576px) {
    /* Carousel images for mobile */
    .carousel-item img {
        height: 250px !important;
    }

    /* Service images */
    .service-image-container {
        height: 180px !important;
    }

    /* Team images */
    .team-item img {
        height: 200px !important;
    }

    /* Feature icons */
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }

    /* Metric circles */
    .metric__circle {
        width: 65px !important;
        height: 65px !important;
    }

    /* About page images */
    .about img {
        height: 180px !important;
    }

    /* Gallery images */
    .gallery-item img {
        height: 120px !important;
    }

    /* Logo images */
    .navbar-brand img {
        height: 80px !important;
        width: 80px !important;
    }

    /* Partner logos */
    .partner-logo img,
    .brand-logo img {
        max-height: 60px !important;
        width: auto !important;
    }
}

/* ========== MOBILE SPECIFIC TITLE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    /* Main page titles */
    .section-title,
    .page-title,
    .main-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    /* Service titles */
    .service-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    /* Feature titles */
    .feature-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }

    /* Team titles */
    .team-title,
    .team-title-enhanced {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    /* Metric numbers */
    .metric__number {
        font-size: 2rem !important;
    }

    /* Metric labels */
    .metric__label {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    /* Tab titles */
    .tab-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    /* Foundation titles */
    .foundation-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - even smaller titles */
    .section-title,
    .page-title,
    .main-title {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.8rem !important;
    }

    /* Service titles */
    .service-title {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }

    /* Feature titles */
    .feature-title {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }

    /* Team titles */
    .team-title,
    .team-title-enhanced {
        font-size: 1.4rem !important;
        line-height: 1.1 !important;
    }

    /* Metric numbers */
    .metric__number {
        font-size: 1.8rem !important;
    }

    /* Metric labels */
    .metric__label {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    /* Tab titles */
    .tab-title {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
    }

    /* Foundation titles */
    .foundation-title {
        font-size: 1.4rem !important;
        line-height: 1.1 !important;
    }

    /* Carousel captions */
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }

    .carousel-caption h3,
    .carousel-caption h4 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }
}

/* ========== MOBILE LAYOUT IMPROVEMENTS ========== */

@media (max-width: 768px) {
    /* Button adjustments */
    .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem !important;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Form adjustments */
    .form-control {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9rem !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 1rem !important;
    }

    .modal-content {
        border-radius: 10px !important;
    }

    /* Table adjustments */
    .table {
        font-size: 0.9rem !important;
    }

    .table th,
    .table td {
        padding: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small device adjustments */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .btn-lg {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.95rem !important;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    /* Card adjustments */
    .card-body {
        padding: 1rem !important;
    }

    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.85rem !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem !important;
    }

    /* Table adjustments */
    .table {
        font-size: 0.8rem !important;
    }

    .table th,
    .table td {
        padding: 0.4rem !important;
    }

    /* Grid adjustments */
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .col,
    [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* ========== MOBILE SPECIFIC COMPONENT FIXES ========== */

@media (max-width: 768px) {
    /* Carousel specific */
    .carousel-caption {
        padding: 1rem !important;
    }

    .carousel-caption h1,
    .carousel-caption h2,
    .carousel-caption h3 {
        margin-bottom: 0.5rem !important;
    }

    /* Service section */
    .service-nav-btn {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
    }

    /* Team section */
    .team-overlay .btn {
        width: 40px !important;
        height: 40px !important;
        margin: 0 3px !important;
    }

    /* Footer */
    .footer .btn.btn-link {
        font-size: 0.9rem !important;
        padding: 0.3rem 0 !important;
    }

    /* Testimonial */
    .testimonial-text {
        padding: 1.5rem !important;
    }

    /* Facts section */
    .fact {
        padding: 2rem 0 !important;
    }

    /* Contact section */
    .contact-form {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small specific fixes */
    .carousel-caption {
        padding: 0.5rem !important;
    }

    .carousel-caption h1,
    .carousel-caption h2,
    .carousel-caption h3 {
        margin-bottom: 0.3rem !important;
    }

    /* Service section */
    .service-nav-btn {
        padding: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }

    .service-icon-wrapper {
        width: 45px !important;
        height: 45px !important;
    }

    /* Team section */
    .team-overlay .btn {
        width: 35px !important;
        height: 35px !important;
        margin: 0 2px !important;
        font-size: 0.8rem !important;
    }

    /* Footer */
    .footer .btn.btn-link {
        font-size: 0.8rem !important;
        padding: 0.2rem 0 !important;
    }

    /* Testimonial */
    .testimonial-text {
        padding: 1rem !important;
    }

    /* Facts section */
    .fact {
        padding: 1.5rem 0 !important;
    }

    /* Contact section */
    .contact-form {
        padding: 1rem !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem !important;
        padding: 0.5rem 0 !important;
    }

    /* Pagination */
    .pagination .page-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* ========== FINAL MOBILE OPTIMIZATION ========== */

/* Ensure all images are responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Touch-friendly elements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .dropdown-item,
    .page-link {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Better spacing for touch */
    .nav-item {
        margin-bottom: 0.25rem !important;
    }

    /* Improved form controls */
    .form-control,
    .form-select {
        min-height: 44px !important;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-item {
        min-height: 300px !important;
    }

    .carousel-caption {
        padding: 0.5rem !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    h1 {
        font-size: 1.4rem !important;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .carousel-item {
        min-height: 200px !important;
    }

    .service-image-container,
    .team-item img {
        height: 150px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
    }
}

.fw-medium {
    font-weight: 600 !important;
}

/* ========== BACK TO TOP BUTTON - ENHANCED ========== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #7a2020, var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(94, 25, 25, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 25, 25, 0.3);
    color: white;
}

.back-to-top i {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
    color: white;
}

/* Pulse animation */
.back-to-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: pulse 2s infinite;
}

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

/* Mobile responsive for back-to-top */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .back-to-top i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .back-to-top i {
        font-size: 1rem;
    }
}

/* Ensure proper stacking */
.back-to-top {
    z-index: 10000 !important;
}

/* Fix for potential conflicts with other elements */
.back-to-top.btn-lg-square {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

@media (max-width: 768px) {
    .back-to-top.btn-lg-square {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 576px) {
    .back-to-top.btn-lg-square {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Additional fixes for back-to-top button */
.back-to-top {
    /* Ensure it doesn't interfere with other elements */
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    /* Smooth transitions */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;

    /* Prevent text selection */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure proper display on all browsers */
.back-to-top.show {
    display: -webkit-flex !important;
    display: -moz-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

/* Fix for potential z-index conflicts */
.back-to-top {
    z-index: 999999 !important;
}

/* Ensure it works on touch devices */
@media (hover: none) and (pointer: coarse) {
    .back-to-top:active {
        background: linear-gradient(135deg, #7a2020, var(--primary));
        transform: translateY(-1px);
    }
}

/* Fix for iOS Safari */
@supports (-webkit-appearance: none) {
    .back-to-top {
        -webkit-appearance: none;
        -webkit-border-radius: 50%;
    }
}

/* Accessibility improvements */
.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Prevent conflicts with Bootstrap */
.back-to-top.btn {
    border: none !important;
    background: linear-gradient(135deg, var(--primary), #7a2020) !important;
    color: white !important;
}

.back-to-top.btn:hover,
.back-to-top.btn:focus,
.back-to-top.btn:active {
    background: linear-gradient(135deg, #7a2020, var(--primary)) !important;
    color: white !important;
    border: none !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* ========== CAROUSEL MOBILE FIXES ========== */

/* General carousel improvements */
.carousel-item {
    position: relative !important;
    overflow: hidden !important;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

/* Carousel controls improvements */
.carousel-control-prev,
.carousel-control-next {
    width: 8% !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-color: rgba(94, 25, 25, 0.8) !important;
    border-radius: 50% !important;
    padding: 0.5rem !important;
}

/* Desktop carousel */
@media (min-width: 992px) {
    #header-carousel .carousel-item {
        min-height: 600px !important;
    }
}

/* Tablet carousel */
@media (max-width: 991px) and (min-width: 769px) {
    #header-carousel .carousel-item {
        min-height: 500px !important;
    }
}

/* Mobile carousel */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }

    #header-carousel .carousel-item img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10% !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem !important;
        height: 2rem !important;
    }
}

/* Small mobile carousel */
@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12% !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
        padding: 0.3rem !important;
    }
}

/* Very small mobile carousel */
@media (max-width: 375px) {
    #header-carousel .carousel-item {
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15% !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.2rem !important;
        height: 1.2rem !important;
        padding: 0.2rem !important;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    #header-carousel .carousel-item {
        min-height: 350px !important;
        max-height: 350px !important;
    }
}

/* Prevent carousel overflow */
.container-fluid.p-0.mb-5 {
    overflow: hidden !important;
}

#header-carousel {
    overflow: hidden !important;
    border-radius: 0 !important;
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-bg-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: var(--secondary) !important;
}




.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}





/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/carousel-bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Excellence Metrics ***/
.excellence__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.metric__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.1),
        0 1px 8px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    min-height: 280px;
    width: 100%;
}

.metric__item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
    justify-self: center;
}

.metric__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric__item--1::before {
    background: linear-gradient(90deg, #5e1919, #8b2635, #5e1919);
}

.metric__item--2::before {
    background: linear-gradient(90deg, #7a2020, #5e1919, #7a2020);
}

.metric__item--3::before {
    background: linear-gradient(90deg, #f39c12, #e67e22, #f39c12);
}

.metric__item:hover::before {
    opacity: 1;
}

.metric__item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.metric__visual {
    position: relative;
    margin-bottom: 1.5rem;
}

.metric__circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.circle__progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle__bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 3;
}

.circle__fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
    animation: progressAnimation 2s ease-in-out forwards;
}

.metric__item--1 .circle__fill {
    stroke: url(#gradient1);
    animation-delay: 0.2s;
}

.metric__item--2 .circle__fill {
    stroke: url(#gradient2);
    animation-delay: 0.4s;
}

.metric__item--3 .circle__fill {
    stroke: url(#gradient3);
    animation-delay: 0.6s;
}

@keyframes progressAnimation {
    from {
        stroke-dashoffset: 283;
    }
    to {
        stroke-dashoffset: 70;
    }
}

.metric__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.metric__item--1 .metric__icon {
    color: #8b2635;
}

.metric__item--2 .metric__icon {
    color: #5e1919;
}

.metric__item--3 .metric__icon {
    color: #e67e22;
}

.metric__item:hover .metric__icon {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.metric__content {
    width: 100%;
}

.metric__number {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.metric__item--1 .metric__number {
    background: linear-gradient(135deg, #5e1919, #8b2635);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric__item--2 .metric__number {
    background: linear-gradient(135deg, #7a2020, #5e1919);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric__item--3 .metric__number {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric__label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    hyphens: auto;
}

.metric__description {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .excellence__metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 0 1rem;
        max-width: 800px;
    }

    .metric__item {
        padding: 2.25rem 1.75rem;
        min-height: 260px;
    }

    .metric__item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .excellence__metrics {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        max-width: 500px;
    }

    .metric__item {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 auto;
        min-height: 240px;
    }

    .metric__item:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: auto;
    }

    .metric__number {
        font-size: 2.5rem;
    }

    .metric__circle {
        width: 85px;
        height: 85px;
    }

    .metric__icon {
        font-size: 1.75rem;
    }

    .metric__label {
        font-size: 1.25rem;
    }

    .metric__description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .excellence__metrics {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .metric__item {
        padding: 1.75rem 1.25rem;
        min-height: 220px;
    }

    .metric__number {
        font-size: 2.25rem;
    }

    .metric__circle {
        width: 75px;
        height: 75px;
    }

    .metric__icon {
        font-size: 1.5rem;
    }

    .metric__label {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .metric__description {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}


/*** Feature Cards ***/
.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 1px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1);
}

.feature-card--highlighted {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(94, 25, 25, 0.1);
}

.feature-card--highlighted::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    border-radius: 2px;
}

.feature-text {
    flex: 1;
    margin-bottom: 1.5rem;
}

.text-preview,
.text-full {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    margin: 0;
}

.text-preview {
    display: block;
}

.text-full {
    display: none;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    align-self: flex-start;
    padding: 0.5rem 0;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    transition: width 0.3s ease;
}

.read-more-btn:hover::before {
    width: 100%;
}

.read-more-btn:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.btn-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.read-more-btn:hover .btn-icon {
    transform: translateX(3px);
}

.read-more-btn.expanded:hover .btn-icon {
    transform: rotate(180deg) translateX(3px);
}

/* Feature Cards Responsive */
@media (max-width: 992px) {
    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.75rem 1.25rem;
        border-radius: 15px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .text-preview,
    .text-full {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .read-more-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem auto;
    }

    .feature-icon i {
        font-size: 1.4rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .text-preview,
    .text-full {
        font-size: 0.9rem;
        text-align: center;
    }

    .read-more-btn {
        align-self: center;
        font-size: 0.85rem;
    }
}


/*** Foundation Section ***/
.foundation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Grid background removed */

.foundation-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.section-subtitle::before {
    left: -70px;
}

.section-subtitle::after {
    right: -70px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.3rem;
    color: #666;
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.foundation-content {
    position: relative;
    z-index: 2;
}

.foundation-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.foundation-nav-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.foundation-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 25, 25, 0.1), transparent);
    transition: left 0.5s ease;
}

.foundation-nav-item:hover::before,
.foundation-nav-item.active::before {
    left: 100%;
}

.foundation-nav-item.active,
.foundation-nav-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.2);
}

.nav-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.nav-icon i {
    font-size: 1.5rem;
    color: white;
}

.foundation-nav-item:hover .nav-icon,
.foundation-nav-item.active .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-content {
    flex: 1;
}

.nav-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-content span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.nav-arrow {
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-arrow i {
    font-size: 1rem;
    color: var(--primary);
}

.foundation-nav-item:hover .nav-arrow,
.foundation-nav-item.active .nav-arrow {
    transform: translateX(5px);
}

.foundation-tabs {
    height: 100%;
}

.foundation-tab-content {
    display: flex;
    gap: 2rem;
    height: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.foundation-tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
}

.tab-image {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    min-height: 350px;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.foundation-tab-content:hover .tab-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.8), rgba(255, 107, 107, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foundation-tab-content:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.overlay-icon i {
    font-size: 2rem;
    color: white;
}

.tab-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
}

.tab-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.tab-badge span {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tab-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
}

.tab-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(94, 25, 25, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(94, 25, 25, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

.foundation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.foundation-btn::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: left 0.5s ease;
}

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

.foundation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    color: white;
}

.foundation-btn i {
    transition: transform 0.3s ease;
}

.foundation-btn:hover i {
    transform: translateX(5px);
}

/* Foundation Section Responsive */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }

    .foundation-tab-content {
        padding: 1.5rem;
    }

    .tab-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .foundation-section {
        padding: 3rem 0;
    }

    .foundation-header {
        margin-bottom: 3rem;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        display: none;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1.2rem;
    }

    .foundation-tab-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .tab-image {
        min-height: 250px;
    }

    .tab-info {
        padding-left: 0;
    }

    .tab-title {
        font-size: 1.8rem;
    }

    .foundation-nav-item {
        padding: 1.25rem;
    }

    .nav-icon {
        width: 50px;
        height: 50px;
    }

    .nav-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .foundation-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .foundation-tab-content {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .tab-image {
        min-height: 200px;
        border-radius: 10px;
    }

    .tab-title {
        font-size: 1.6rem;
    }

    .tab-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .foundation-nav-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-content h4 {
        font-size: 1.1rem;
    }

    .nav-content span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .foundation-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .foundation-tab-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .tab-image {
        min-height: 180px;
    }

    .tab-title {
        font-size: 1.4rem;
    }

    .tab-description {
        font-size: 0.95rem;
        text-align: left;
    }

    .tab-features {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .feature-item {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .foundation-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .foundation-nav-item {
        padding: 0.75rem;
        margin: 0 0.5rem;
    }

    .nav-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }

    .nav-icon i {
        font-size: 1.1rem;
    }

    .nav-content h4 {
        font-size: 1rem;
    }

    .nav-content span {
        font-size: 0.8rem;
    }
}


/*** Service Navigation Buttons ***/
.service-nav-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.service-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 25, 25, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-nav-btn:hover::before,
.service-nav-btn.active::before {
    left: 100%;
}

.service-nav-btn.active,
.service-nav-btn:hover {
    border-color: var(--primary) !important;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.2) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.service-nav-btn.active .service-text h4,
.service-nav-btn:hover .service-text h4,
.service-nav-btn.active .service-text small,
.service-nav-btn:hover .service-text small {
    color: var(--secondary) !important;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon-wrapper i {
    color: white;
    transition: all 0.3s ease;
}

.service-nav-btn:hover .service-icon-wrapper,
.service-nav-btn.active .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.service-text h4 {
    color: var(--secondary) !important;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.service-text small {
    color: #666 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Ensure text visibility */
.nav-pills .nav-link {
    color: var(--secondary) !important;
}

.nav-pills .nav-link.active {
    background-color: transparent !important;
    color: var(--secondary) !important;
}

.nav-pills .nav-link:hover {
    color: var(--secondary) !important;
}

/* ========== FIX FOR SERVICE NAVIGATION TEXT VISIBILITY ========== */

/* Ensure service navigation text is always visible */
.service-nav-btn h4,
.service-nav-btn .service-text h4 {
    color: var(--secondary) !important;
}

.service-nav-btn small,
.service-nav-btn .service-text small {
    color: #666 !important;
}

/* Active state - keep text visible */
.service-nav-btn.active h4,
.service-nav-btn.active .service-text h4,
.service-nav-btn:hover h4,
.service-nav-btn:hover .service-text h4 {
    color: var(--secondary) !important;
}

.service-nav-btn.active small,
.service-nav-btn.active .service-text small,
.service-nav-btn:hover small,
.service-nav-btn:hover .service-text small {
    color: #666 !important;
}

/* Focus state - keep text visible */
.service-nav-btn:focus h4,
.service-nav-btn:focus .service-text h4 {
    color: var(--secondary) !important;
}

.service-nav-btn:focus small,
.service-nav-btn:focus .service-text small {
    color: #666 !important;
}

/* Override any Bootstrap nav-pills styles that might interfere */
.nav-pills .service-nav-btn.nav-link h4,
.nav-pills .service-nav-btn.nav-link.active h4,
.nav-pills .service-nav-btn.nav-link:hover h4,
.nav-pills .service-nav-btn.nav-link:focus h4 {
    color: var(--secondary) !important;
}

.nav-pills .service-nav-btn.nav-link small,
.nav-pills .service-nav-btn.nav-link.active small,
.nav-pills .service-nav-btn.nav-link:hover small,
.nav-pills .service-nav-btn.nav-link:focus small {
    color: #666 !important;
}

/* Ensure text contrast on all backgrounds */
.service-nav-btn .service-text {
    position: relative;
    z-index: 2;
}

.service-nav-btn .service-text h4,
.service-nav-btn .service-text small {
    text-shadow: none !important;
    background: transparent !important;
}

/* Force text color in all states */
button.service-nav-btn h4,
button.service-nav-btn small,
button.service-nav-btn.active h4,
button.service-nav-btn.active small,
button.service-nav-btn:hover h4,
button.service-nav-btn:hover small,
button.service-nav-btn:focus h4,
button.service-nav-btn:focus small,
button.service-nav-btn:active h4,
button.service-nav-btn:active small {
    color: var(--secondary) !important;
}

button.service-nav-btn small,
button.service-nav-btn.active small,
button.service-nav-btn:hover small,
button.service-nav-btn:focus small,
button.service-nav-btn:active small {
    color: #666 !important;
}

/* Additional fixes for mobile devices */
@media (max-width: 768px) {
    .service-nav-btn h4,
    .service-nav-btn .service-text h4,
    .service-nav-btn.active h4,
    .service-nav-btn.active .service-text h4,
    .service-nav-btn:hover h4,
    .service-nav-btn:hover .service-text h4,
    .service-nav-btn:focus h4,
    .service-nav-btn:focus .service-text h4,
    .service-nav-btn:active h4,
    .service-nav-btn:active .service-text h4 {
        color: var(--secondary) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .service-nav-btn small,
    .service-nav-btn .service-text small,
    .service-nav-btn.active small,
    .service-nav-btn.active .service-text small,
    .service-nav-btn:hover small,
    .service-nav-btn:hover .service-text small,
    .service-nav-btn:focus small,
    .service-nav-btn:focus .service-text small,
    .service-nav-btn:active small,
    .service-nav-btn:active .service-text small {
        color: #666 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Override any potential Bootstrap conflicts */
.nav-pills .nav-link,
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    background-color: transparent !important;
}

/* Ensure proper contrast */
.service-nav-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.service-nav-btn.active,
.service-nav-btn:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Final override for any remaining issues */
[data-bs-toggle="pill"] h4,
[data-bs-toggle="pill"] small,
[data-bs-toggle="pill"].active h4,
[data-bs-toggle="pill"].active small,
[data-bs-toggle="pill"]:hover h4,
[data-bs-toggle="pill"]:hover small,
[data-bs-toggle="pill"]:focus h4,
[data-bs-toggle="pill"]:focus small {
    color: var(--secondary) !important;
}

[data-bs-toggle="pill"] small,
[data-bs-toggle="pill"].active small,
[data-bs-toggle="pill"]:hover small,
[data-bs-toggle="pill"]:focus small {
    color: #666 !important;
}

/* ========== MOBILE CENTER ALIGNMENT FOR HEADINGS ========== */

/* Center alignment for all headings on mobile devices */
@media (max-width: 768px) {
    /* Main headings */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
    }

    /* Section titles */
    .section-title,
    .page-title,
    .main-title,
    .title,
    .heading {
        text-align: center !important;
    }

    /* Service titles */
    .service-title,
    .feature-title,
    .card-title {
        text-align: center !important;
    }

    /* Team titles */
    .team-title,
    .team-title-enhanced,
    .member-name {
        text-align: center !important;
    }

    /* Carousel titles */
    .carousel-caption h1,
    .carousel-caption h2,
    .carousel-caption h3,
    .carousel-caption h4,
    .carousel-caption h5 {
        text-align: center !important;
    }

    /* About page titles */
    .about-title,
    .about h1,
    .about h2,
    .about h3 {
        text-align: center !important;
    }

    /* Contact page titles */
    .contact-title,
    .contact h1,
    .contact h2,
    .contact h3 {
        text-align: center !important;
    }

    /* Footer titles */
    .footer h1,
    .footer h2,
    .footer h3,
    .footer h4,
    .footer h5 {
        text-align: center !important;
    }

    /* Metric labels */
    .metric__label,
    .metric__number {
        text-align: center !important;
    }

    /* Tab titles */
    .tab-title,
    .nav-title {
        text-align: center !important;
    }

    /* Foundation titles */
    .foundation-title,
    .foundation h1,
    .foundation h2,
    .foundation h3 {
        text-align: center !important;
    }

    /* Custom component titles */
    .card-header h1,
    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5 {
        text-align: center !important;
    }

    /* Modal titles */
    .modal-title,
    .modal-header h1,
    .modal-header h2,
    .modal-header h3 {
        text-align: center !important;
    }

    /* Breadcrumb titles */
    .breadcrumb-item h1,
    .breadcrumb-item h2,
    .breadcrumb-item h3 {
        text-align: center !important;
    }

    /* Page header titles */
    .page-header h1,
    .page-header h2,
    .page-header h3 {
        text-align: center !important;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    /* All headings centered on very small screens */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ensure proper spacing */
    .section-title,
    .page-title,
    .main-title {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Service navigation titles */
    .service-nav-btn h4,
    .service-nav-btn .service-text h4 {
        text-align: center !important;
    }

    /* Feature card titles */
    .feature-card h1,
    .feature-card h2,
    .feature-card h3,
    .feature-card h4 {
        text-align: center !important;
    }

    /* Team card titles */
    .team-item h1,
    .team-item h2,
    .team-item h3,
    .team-item h4,
    .team-item h5 {
        text-align: center !important;
    }

    /* Testimonial titles */
    .testimonial h1,
    .testimonial h2,
    .testimonial h3,
    .testimonial h4 {
        text-align: center !important;
    }
}

/* ========== SPECIFIC MOBILE HEADING ADJUSTMENTS ========== */

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
    }

    .section-title,
    .page-title,
    .main-title {
        text-align: center !important;
    }
}

/* Tablet portrait mode */
@media (max-width: 768px) and (min-width: 577px) {
    /* Main section headings */
    .container h1,
    .container h2,
    .container h3 {
        text-align: center !important;
    }

    /* Row headings */
    .row h1,
    .row h2,
    .row h3 {
        text-align: center !important;
    }

    /* Column headings */
    .col h1,
    .col h2,
    .col h3,
    [class*="col-"] h1,
    [class*="col-"] h2,
    [class*="col-"] h3 {
        text-align: center !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    /* All headings must be centered */
    * h1,
    * h2,
    * h3,
    * h4,
    * h5,
    * h6 {
        text-align: center !important;
    }

    /* Ensure no text overflow */
    .section-title,
    .page-title,
    .main-title {
        text-align: center !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* Touch device specific */
@media (hover: none) and (pointer: coarse) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
    }

    .section-title,
    .service-title,
    .feature-title,
    .team-title {
        text-align: center !important;
    }
}

/* ========== ADDITIONAL MOBILE HEADING CENTERS ========== */

/* Mobile-specific component headings */
@media (max-width: 768px) {
    /* Navbar brand text */
    .navbar-brand h1,
    .navbar-brand h2,
    .navbar-brand h3 {
        text-align: center !important;
    }

    /* Alert headings */
    .alert h1,
    .alert h2,
    .alert h3,
    .alert h4 {
        text-align: center !important;
    }

    /* Accordion headings */
    .accordion-header h1,
    .accordion-header h2,
    .accordion-header h3,
    .accordion-button {
        text-align: center !important;
    }

    /* Tab content headings */
    .tab-content h1,
    .tab-content h2,
    .tab-content h3,
    .tab-pane h1,
    .tab-pane h2,
    .tab-pane h3 {
        text-align: center !important;
    }

    /* List group headings */
    .list-group-item h1,
    .list-group-item h2,
    .list-group-item h3,
    .list-group-item h4 {
        text-align: center !important;
    }

    /* Offcanvas headings */
    .offcanvas-header h1,
    .offcanvas-header h2,
    .offcanvas-header h3,
    .offcanvas-title {
        text-align: center !important;
    }

    /* Toast headings */
    .toast-header h1,
    .toast-header h2,
    .toast-header h3,
    .toast-body h1,
    .toast-body h2,
    .toast-body h3 {
        text-align: center !important;
    }

    /* Dropdown headings */
    .dropdown-header,
    .dropdown-item h1,
    .dropdown-item h2,
    .dropdown-item h3 {
        text-align: center !important;
    }
}

/* Ensure center alignment overrides any existing styles */
@media (max-width: 768px) {
    /* Force center for any missed headings */
    .text-start h1,
    .text-start h2,
    .text-start h3,
    .text-left h1,
    .text-left h2,
    .text-left h3 {
        text-align: center !important;
    }

    /* Override right alignment on mobile */
    .text-end h1,
    .text-end h2,
    .text-end h3,
    .text-right h1,
    .text-right h2,
    .text-right h3 {
        text-align: center !important;
    }
}

/* ========== GLOBAL CENTER ALIGNMENT FOR ALL TEXT ========== */

/* Center all headings globally */
h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
}

/* Center all paragraphs */
p {
    text-align: center !important;
}

/* Center all text elements */
span, div, a, label, small {
    text-align: center !important;
}

/* Center all list items */
li, ul, ol {
    text-align: center !important;
}

/* Center all form elements text */
.form-control, .form-label, .form-text {
    text-align: center !important;
}

/* Center all button text */
.btn, button {
    text-align: center !important;
}

/* Center all card content */
.card-title, .card-text, .card-header, .card-body, .card-footer {
    text-align: center !important;
}

/* Center all navigation text */
.nav-link, .navbar-nav, .breadcrumb-item {
    text-align: center !important;
}

/* Center all modal content */
.modal-title, .modal-body, .modal-header, .modal-footer {
    text-align: center !important;
}

/* Center all table content */
.table th, .table td {
    text-align: center !important;
}

/* Center all alert content */
.alert {
    text-align: center !important;
}

/* Center all badge content */
.badge {
    text-align: center !important;
}

/* Center all dropdown content */
.dropdown-item, .dropdown-header {
    text-align: center !important;
}

/* Center all accordion content */
.accordion-header, .accordion-body {
    text-align: center !important;
}

/* Center all tab content */
.tab-content, .tab-pane {
    text-align: center !important;
}

/* Center all carousel content */
.carousel-caption, .carousel-item {
    text-align: center !important;
}

/* Center all footer content */
.footer, .footer p, .footer h1, .footer h2, .footer h3, .footer h4, .footer h5 {
    text-align: center !important;
}

/* ========== SPECIFIC COMPONENT CENTER ALIGNMENT ========== */

/* Center all service content */
.service-title, .service-description, .service-text, .service-content {
    text-align: center !important;
}

/* Center all feature content */
.feature-title, .feature-description, .feature-text, .feature-content {
    text-align: center !important;
}

/* Center all team content */
.team-title, .team-description, .team-text, .team-content, .member-name, .member-position {
    text-align: center !important;
}

/* Center all about content */
.about-title, .about-description, .about-text, .about-content {
    text-align: center !important;
}

/* Center all contact content */
.contact-title, .contact-description, .contact-text, .contact-content {
    text-align: center !important;
}

/* Center all testimonial content */
.testimonial-title, .testimonial-text, .testimonial-content {
    text-align: center !important;
}

/* Center all metric content */
.metric__number, .metric__label, .metric__description {
    text-align: center !important;
}

/* Center all section content */
.section-title, .section-subtitle, .section-description, .section-content {
    text-align: center !important;
}

/* Center all page content */
.page-title, .page-subtitle, .page-description, .page-content {
    text-align: center !important;
}

/* Center all foundation content */
.foundation-title, .foundation-description, .foundation-text {
    text-align: center !important;
}

/* Center all tab content */
.tab-title, .tab-description, .tab-text {
    text-align: center !important;
}

/* Center all partnership content */
.partnership-title, .partnership-description, .partnership-text {
    text-align: center !important;
}

/* Center all brand content */
.brand-title, .brand-description, .brand-text {
    text-align: center !important;
}

/* Center all stats content */
.stats-title, .stats-description, .stats-text, .stat-number, .stat-label {
    text-align: center !important;
}

/* Center all safety content */
.safety-title, .safety-description, .safety-text {
    text-align: center !important;
}

/* ========== CONTAINER AND LAYOUT CENTER ALIGNMENT ========== */

/* Center all container content */
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    text-align: center !important;
}

/* Center all row content */
.row {
    text-align: center !important;
}

/* Center all column content */
.col, [class*="col-"] {
    text-align: center !important;
}

/* Center all flex content */
.d-flex, .flex-column, .flex-row {
    text-align: center !important;
}

/* Center all grid content */
.d-grid {
    text-align: center !important;
}

/* Center all text utilities - excluding topbar icons */
.text-muted:not(.topbar-icon),
.text-primary:not(.topbar-icon),
.text-secondary:not(.topbar-icon),
.text-success:not(.topbar-icon),
.text-danger:not(.topbar-icon),
.text-warning:not(.topbar-icon),
.text-info:not(.topbar-icon),
.text-light:not(.topbar-icon),
.text-dark:not(.topbar-icon) {
    text-align: center !important;
}

/* Topbar icons should not be centered */
.topbar-icon {
    text-align: inherit !important;
    display: inline-block !important;
    color: var(--primary) !important;
}

/* Ensure topbar icons are always red */
.topbar-icon.text-primary {
    color: var(--primary) !important;
}

/* Topbar icon hover effects */
.topbar-icon:hover {
    color: #7a2020 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Ensure all Font Awesome icons are visible */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

/* Specific icon fixes */
.fas.fa-map-marker-alt,
.fas.fa-clock,
.fas.fa-phone-alt,
.fas.fa-envelope,
.fas.fa-arrow-right {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Brand icons */
.fab.fa-facebook-f,
.fab.fa-twitter,
.fab.fa-linkedin-in,
.fab.fa-instagram,
.fab.fa-youtube {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Text centering for headings and content */
h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
}

/* Page headers should be centered */
.page-header h1,
.page-header .breadcrumb {
    text-align: center !important;
}

/* Service content should be centered */
.service-content-card h3,
.service-content-card p,
.service-panel-title,
.service-panel-description {
    text-align: center !important;
}

/* Footer content alignment */
.footer-content p {
    text-align: justify !important;
}

.footer-title {
    text-align: left !important;
}

/* Enhanced hover effects for all pages */
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Card hover effects */
.service-content-card:hover,
.team-item:hover,
.contact-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

/* Navigation hover effects */
.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-1px) !important;
    transition: all 0.3s ease !important;
}

/* Social media hover effects */
.social-icon:hover,
.btn-social:hover {
    transform: scale(1.1) rotate(5deg) !important;
    transition: all 0.3s ease !important;
}

/* Form input hover effects */
.form-control:hover,
.form-select:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(94, 25, 25, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* Center all display utilities */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    text-align: center !important;
}

/* Center all lead text */
.lead {
    text-align: center !important;
}

/* Center all blockquote */
.blockquote, .blockquote-footer {
    text-align: center !important;
}

/* Center all figure content */
.figure-caption {
    text-align: center !important;
}

/* Center all list group content */
.list-group-item {
    text-align: center !important;
}

/* Center all progress content */
.progress {
    text-align: center !important;
}

/* Center all spinner content */
.spinner-border, .spinner-grow {
    text-align: center !important;
}

/* Center all toast content */
.toast-header, .toast-body {
    text-align: center !important;
}

/* Center all offcanvas content */
.offcanvas-header, .offcanvas-body, .offcanvas-title {
    text-align: center !important;
}

/* ========== INTERACTIVE ELEMENTS CENTER ALIGNMENT ========== */

/* Center all input content */
input, textarea, select {
    text-align: center !important;
}

/* Center all link content */
a {
    text-align: center !important;
}

/* Center all image captions */
.img-caption, .image-caption {
    text-align: center !important;
}

/* Center all video captions */
.video-caption {
    text-align: center !important;
}

/* Center all code content */
code, pre {
    text-align: center !important;
}

/* Center all mark content */
mark {
    text-align: center !important;
}

/* Center all kbd content */
kbd {
    text-align: center !important;
}

/* Center all samp content */
samp {
    text-align: center !important;
}

/* Center all var content */
var {
    text-align: center !important;
}

/* Center all time content */
time {
    text-align: center !important;
}

/* Center all address content */
address {
    text-align: center !important;
}

/* Center all cite content */
cite {
    text-align: center !important;
}

/* Center all abbr content */
abbr {
    text-align: center !important;
}

/* Center all dfn content */
dfn {
    text-align: center !important;
}

/* Center all strong content */
strong, b {
    text-align: center !important;
}

/* Center all em content */
em, i {
    text-align: center !important;
}

/* Center all sub and sup content */
sub, sup {
    text-align: center !important;
}

/* Center all del and ins content */
del, ins {
    text-align: center !important;
}

/* ========== FINAL COMPREHENSIVE CENTER ALIGNMENT ========== */

/* Override any existing text alignment */
* {
    text-align: center !important;
}

/* Ensure all text content is centered */
*:not(img):not(svg):not(canvas):not(video):not(audio):not(iframe):not(object):not(embed) {
    text-align: center !important;
}

/* Center all pseudo elements */
*::before, *::after {
    text-align: center !important;
}

/* Center all custom components */
[class*="title"], [class*="heading"], [class*="text"], [class*="content"], [class*="description"] {
    text-align: center !important;
}

/* Center all data attributes */
[data-*] {
    text-align: center !important;
}

/* Center all role attributes */
[role] {
    text-align: center !important;
}

/* Center all aria attributes */
[aria-*] {
    text-align: center !important;
}

/* Center all id elements */
[id] {
    text-align: center !important;
}

/* Center all class elements */
[class] {
    text-align: center !important;
}

/* Force center alignment for any missed elements */
body * {
    text-align: center !important;
}

/* Ensure center alignment is inherited */
html, body {
    text-align: center !important;
}

/* Override any inline styles */
[style*="text-align"] {
    text-align: center !important;
}

/* Center all media queries content */
@media (min-width: 1px) {
    * {
        text-align: center !important;
    }
}

/* Final catch-all rule */
*:not(br):not(hr):not(wbr) {
    text-align: center !important;
}

/* ========== SPECIFIC CENTER ALIGNMENT FOR REQUESTED ELEMENTS ========== */

/* Footer content centering */
.larsa-footer,
.footer-main,
.footer-widget,
.footer-title,
.footer-content,
.footer-content p,
.footer-social,
.footer-map-container,
.footer-bottom,
.copyright,
.copyright p,
.credit-links {
    text-align: center !important;
}

/* Footer title centering with responsive adjustments */
.footer-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Our Executed Work section centering */
.partners-section,
.partners-header,
.section-badge-partners,
.badge-text-partners,
.partners-main-title,
.title-word-partners,
.partners-subtitle,
.subtitle-text-partners {
    text-align: center !important;
}

/* Commercial Agencies section centering */
.htc__brand__area,
.section__title,
.brand-badge-container,
.brand-badge-text,
.title__line,
.title-word,
.our-brand,
.trusted-brand {
    text-align: center !important;
}

/* GET IN TOUCH section centering */
.htc__contact__address,
.contact__section__title,
.contact__section__title h2,
.contact__section__title p,
.title__line,
.text--theme,
.htc__contact__wrap,
.contact__cards__container,
.contact__card,
.contact__card__inner,
.contact__icon,
.contact__details,
.contact__details h3,
.contact__details p,
.contact__details a {
    text-align: center !important;
}

/* Ensure all boxes and containers have centered text */
.container,
.container-fluid,
.container-xxl,
.row,
.col,
[class*="col-"] {
    text-align: center !important;
}

/* All headings and text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, small, strong, em, b, i,
.title, .subtitle, .description, .content,
.text, .label, .caption, .header {
    text-align: center !important;
}

/* All card and box content */
.card, .card-body, .card-header, .card-footer,
.box, .widget, .section, .area,
.feature, .service, .team, .about,
.contact, .testimonial, .metric,
.brand, .partner, .stats {
    text-align: center !important;
}

/* Navigation and menu items */
.nav, .navbar, .nav-link, .dropdown-item,
.breadcrumb, .breadcrumb-item,
.menu, .menu-item {
    text-align: center !important;
}

/* Form elements */
.form-control, .form-label, .form-text,
.btn, button, .input-group,
.form-group, .form-section {
    text-align: center !important;
}

/* List items */
ul, ol, li, .list, .list-item,
.list-group, .list-group-item {
    text-align: center !important;
}

/* Table content */
table, th, td, .table,
.table th, .table td {
    text-align: center !important;
}

/* Modal and popup content */
.modal, .modal-header, .modal-body, .modal-footer,
.modal-title, .popup, .overlay {
    text-align: center !important;
}

/* Alert and notification content */
.alert, .notification, .message,
.badge, .label, .tag {
    text-align: center !important;
}

/* Carousel and slider content */
.carousel, .carousel-item, .carousel-caption,
.slider, .slide, .owl-carousel {
    text-align: center !important;
}

/* Accordion and tab content */
.accordion, .accordion-header, .accordion-body,
.tab-content, .tab-pane, .nav-tabs {
    text-align: center !important;
}

/* ========== RESPONSIVE CENTER ALIGNMENT ========== */

/* Large screens */
@media (min-width: 1200px) {
    .footer-title,
    .badge-text-partners,
    .brand-badge-text,
    .contact__section__title h2,
    .contact__section__title p,
    .contact__details h3,
    .contact__details p {
        text-align: center !important;
    }
}

/* Medium screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .footer-title,
    .badge-text-partners,
    .brand-badge-text,
    .contact__section__title h2,
    .contact__section__title p,
    .contact__details h3,
    .contact__details p {
        text-align: center !important;
    }
}

/* Small screens */
@media (max-width: 767px) {
    .footer-title,
    .footer-content p,
    .badge-text-partners,
    .brand-badge-text,
    .contact__section__title h2,
    .contact__section__title p,
    .contact__details h3,
    .contact__details p,
    .copyright p {
        text-align: center !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    * {
        text-align: center !important;
    }

    .footer-title,
    .footer-content,
    .footer-content p,
    .badge-text-partners,
    .brand-badge-text,
    .contact__section__title,
    .contact__section__title h2,
    .contact__section__title p,
    .contact__details,
    .contact__details h3,
    .contact__details p,
    .copyright,
    .copyright p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ========== OVERRIDE ANY CONFLICTING STYLES ========== */

/* Override Bootstrap text alignment classes */
.text-left,
.text-start,
.text-right,
.text-end,
.text-justify {
    text-align: center !important;
}

/* Override flexbox alignment */
.d-flex,
.flex-row,
.flex-column,
.justify-content-start,
.justify-content-end,
.justify-content-between,
.justify-content-around,
.justify-content-evenly {
    text-align: center !important;
}

.d-flex *,
.flex-row *,
.flex-column *,
.justify-content-start *,
.justify-content-end *,
.justify-content-between *,
.justify-content-around *,
.justify-content-evenly * {
    text-align: center !important;
}

/* Override grid alignment */
.row,
.col,
[class*="col-"],
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    text-align: center !important;
}

.row *,
.col *,
[class*="col-"] *,
.container *,
.container-fluid *,
.container-sm *,
.container-md *,
.container-lg *,
.container-xl *,
.container-xxl * {
    text-align: center !important;
}

/* Final override with maximum specificity */
html body * {
    text-align: center !important;
}

html body *:not(br):not(hr):not(wbr):not(img):not(svg):not(canvas):not(video):not(audio):not(iframe):not(object):not(embed) {
    text-align: center !important;
}

/* ========== FINAL COMPREHENSIVE CENTER ALIGNMENT ========== */

/* Ensure all text content is absolutely centered */
* {
    text-align: center !important;
}

/* Force center alignment for all possible elements */
*:not(img):not(svg):not(canvas):not(video):not(audio):not(iframe):not(object):not(embed):not(br):not(hr):not(wbr) {
    text-align: center !important;
}

/* Override any inline styles that might conflict */
[style*="text-align: left"],
[style*="text-align: right"],
[style*="text-align: justify"],
[style*="text-align:left"],
[style*="text-align:right"],
[style*="text-align:justify"] {
    text-align: center !important;
}

/* Ensure center alignment is inherited by all children */
body * {
    text-align: center !important;
}

/* Force center alignment with highest CSS specificity */
html body div *,
html body section *,
html body article *,
html body header *,
html body footer *,
html body main *,
html body aside *,
html body nav * {
    text-align: center !important;
}

/* Final override for any missed elements */
.larsa-footer *,
.footer-main *,
.footer-widget *,
.footer-title,
.footer-content *,
.footer-social *,
.footer-bottom *,
.copyright *,
.partners-section *,
.partners-header *,
.section-badge-partners *,
.badge-text-partners,
.htc__brand__area *,
.section__title *,
.brand-badge-container *,
.brand-badge-text,
.htc__contact__address *,
.contact__section__title *,
.contact__cards__container *,
.contact__card *,
.contact__details * {
    text-align: center !important;
}

/* ========== PROFESSIONAL LOCATION ADDRESS STYLING ========== */

/* Professional styling for location address in GET IN TOUCH section */
.contact__details h3:contains("Our Location") + p,
.contact__details p:contains("IRAQ, BAGHDAD"),
.location-address {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(122, 32, 32, 0.05)) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.1) !important;
    margin: 10px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Enhanced styling with gradient text effect */
.contact__details p:contains("IRAQ, BAGHDAD")::before,
.location-address::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(94, 25, 25, 0.02), rgba(122, 32, 32, 0.02)) !important;
    z-index: -1 !important;
}

/* Hover effect for location address */
.contact__details p:contains("IRAQ, BAGHDAD"):hover,
.location-address:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.2) !important;
    border-left-width: 6px !important;
}

/* Specific targeting for all location addresses */
.contact__details p[style*="text-align: center"] {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(122, 32, 32, 0.05)) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.1) !important;
    margin: 10px 0 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Enhanced text styling for address components */
.contact__details p[style*="text-align: center"] br + * {
    color: #7a2020 !important;
    font-weight: 500 !important;
}

/* Professional icon styling for location */
.contact__details h3:contains("Our Location") ~ * .fas.fa-map-marker-alt,
.contact__icon .fas.fa-map-marker-alt {
    color: var(--primary) !important;
    text-shadow: 0 2px 4px rgba(94, 25, 25, 0.3) !important;
}

/* ========== DIRECT TARGETING FOR LOCATION ADDRESS ========== */

/* Target all paragraphs containing IRAQ, BAGHDAD address */
p:contains("IRAQ, BAGHDAD"),
p:contains("AL-MANSOUR"),
p:contains("AL-DAWWI") {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(122, 32, 32, 0.05)) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.1) !important;
    margin: 10px 0 !important;
    transition: all 0.3s ease !important;
}

/* More specific targeting using attribute selectors */
p[style*="text-align: center"]:contains("IRAQ"),
p[style*="text-align: center"]:contains("BAGHDAD"),
p[style*="text-align: center"]:contains("AL-MANSOUR"),
p[style*="text-align: center"]:contains("AL-DAWWI") {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(122, 32, 32, 0.05)) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.1) !important;
    margin: 10px 0 !important;
}

/* Universal class for location styling */
.location-address-style {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(122, 32, 32, 0.05)) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.1) !important;
    margin: 10px 0 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.location-address-style:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.2) !important;
    border-left-width: 6px !important;
}

/* ========== TOPBAR LOCATION STYLING ========== */

/* Enhanced styling for topbar location */
.topbar small:contains("IRAQ, BAGHDAD"),
.container-fluid.bg-light small:contains("IRAQ, BAGHDAD"),
.h-100.d-inline-flex small:contains("IRAQ, BAGHDAD") {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-shadow: 0 1px 2px rgba(94, 25, 25, 0.2) !important;
}

/* Topbar icon styling */
.topbar-icon.fas.fa-map-marker-alt {
    color: var(--primary) !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 2px rgba(94, 25, 25, 0.3) !important;
}

/* General topbar location enhancement */
.container-fluid.bg-light .h-100.d-inline-flex.align-items-center small {
    transition: all 0.3s ease !important;
}

.container-fluid.bg-light .h-100.d-inline-flex.align-items-center:hover small {
    color: var(--secondary) !important;
    transform: translateX(2px) !important;
}

/* ========== RESPONSIVE LOCATION STYLING ========== */

/* Mobile responsive for location address */
@media (max-width: 768px) {
    .location-address-style {
        font-size: 1rem !important;
        padding: 12px 15px !important;
        border-radius: 10px !important;
        margin: 8px 0 !important;
    }

    .location-address-style:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 20px rgba(94, 25, 25, 0.15) !important;
    }
}

@media (max-width: 576px) {
    .location-address-style {
        font-size: 0.95rem !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        margin: 6px 0 !important;
        border-left-width: 3px !important;
    }
}

/* Enhanced visual effects */
.location-address-style::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.6s ease !important;
    z-index: 1 !important;
}

.location-address-style:hover::after {
    transform: translateX(100%) !important;
}

/* Text content should be above the effect */
.location-address-style {
    z-index: 2 !important;
    position: relative !important;
}

/* ========== BOOTSTRAP COLOR OVERRIDES ========== */

/* Primary Button Colors */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #7a2020 !important;
    border-color: #7a2020 !important;
    color: white !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    opacity: 0.6;
}

/* Secondary Button Colors */
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
    background-color: #2a2f31 !important;
    border-color: #2a2f31 !important;
    color: white !important;
}

/* Primary Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-primary:hover,
.text-primary:focus {
    color: #7a2020 !important;
}

/* Secondary Text Colors */
.text-secondary {
    color: var(--secondary) !important;
}

/* Link Colors */
a.text-primary {
    color: var(--primary) !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: #7a2020 !important;
}

/* Badge Colors */
.badge-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

.badge-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Alert Colors */
.alert-primary {
    background-color: rgba(94, 25, 25, 0.1) !important;
    border-color: rgba(94, 25, 25, 0.2) !important;
    color: var(--primary) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

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

/* ========== ICON FIXES ========== */

/* Ensure Font Awesome icons display correctly */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Contact icons specific fixes */
.contact__icon i {
    font-size: 2rem !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Social media icons fixes */
.social-icon i,
.btn i {
    font-size: 1rem !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Phone icons in header */
.fa-phone-alt,
.fa-phone {
    font-size: 0.9rem !important;
}

/* Fallback for missing icons */
.fa-phone-alt::before {
    content: "\f879" !important;
}

.fa-globe::before {
    content: "\f0ac" !important;
}

.fa-phone::before {
    content: "\f095" !important;
}

.fab.fa-facebook-f::before {
    content: "\f39e" !important;
}

.fab.fa-twitter::before {
    content: "\f099" !important;
}

.fab.fa-linkedin-in::before {
    content: "\f0e1" !important;
}

.fab.fa-instagram::before {
    content: "\f16d" !important;
}

.fa-map-marker-alt::before {
    content: "\f3c5" !important;
}

/* ========== ALL ICONS WHITE COLOR ========== */

/* Global icon color override */
.fa, .fas, .far, .fal, .fab,
i[class*="fa-"],
i[class*="fab-"],
i[class*="fas-"],
i[class*="far-"],
i[class*="fal-"] {
    color: white !important;
}

/* Specific icon containers */
.contact__icon i,
.social-icon i,
.btn i,
.navbar i,
.footer i,
.header i,
.service i,
.team i,
.about i,
.feature i,
.metric i,
.brand i,
.partner i,
.testimonial i {
    color: white !important;
}

/* Social media icons */
.social-icons i,
.social-icon i,
.btn-sm-square i,
.social__icon i {
    color: white !important;
}

/* Navigation icons */
.navbar-nav i,
.nav-link i,
.dropdown i {
    color: white !important;
}

/* Button icons */
.btn-primary i,
.btn-secondary i,
.btn i {
    color: white !important;
}

/* Footer icons */
.footer-social i,
.footer i {
    color: white !important;
}

/* Contact section icons */
.contact i,
.contact__icon i,
.contact__details i {
    color: white !important;
}

/* Service section icons */
.service-icon i,
.feature-icon i,
.metric__icon i {
    color: white !important;
}

/* Team section icons */
.team-icon i,
.member-icon i {
    color: white !important;
}

/* Brand section icons */
.brand__icon i,
.partner-icon i {
    color: white !important;
}

/* Override any specific color classes */
.text-primary i,
.text-secondary i,
.text-dark i,
.text-light i {
    color: white !important;
}

/* Ensure icons in colored backgrounds are white */
[style*="background"] i,
.bg-primary i,
.bg-secondary i,
.bg-dark i {
    color: white !important;
}

/* ========== HEADER TOP ICONS RED COLOR OVERRIDE ========== */

/* Header top section - make icons red */
.container-fluid.bg-light .row .col-lg-5 i,
.container-fluid.bg-light .row .col-lg-5 .fa,
.container-fluid.bg-light .row .col-lg-5 .fas,
.container-fluid.bg-light .row .col-lg-5 .fab {
    color: var(--primary) !important;
}

/* Phone icons in header top */
.container-fluid.bg-light .fas.fa-phone-alt {
    color: var(--primary) !important;
}

/* Social media icons in header top */
.container-fluid.bg-light .btn-sm-square i,
.container-fluid.bg-light .fab.fa-facebook-f,
.container-fluid.bg-light .fab.fa-twitter,
.container-fluid.bg-light .fab.fa-linkedin-in,
.container-fluid.bg-light .fab.fa-instagram {
    color: var(--primary) !important;
}

/* More specific selectors for header top */
.bg-light .h-100.d-inline-flex i,
.bg-light .btn.btn-sm-square i {
    color: var(--primary) !important;
}

/* Override white color for header top specifically */
.container-fluid.bg-light i {
    color: var(--primary) !important;
}

/* Ensure header top icons are red with maximum specificity */
html body .container-fluid.bg-light .row .col-lg-5 i,
html body .container-fluid.bg-light .row .col-lg-5 .fa,
html body .container-fluid.bg-light .row .col-lg-5 .fas,
html body .container-fluid.bg-light .row .col-lg-5 .fab {
    color: var(--primary) !important;
}

/* Header top social buttons */
.bg-light .btn-sm-square.bg-white.text-primary i {
    color: var(--primary) !important;
}

/* Header top phone icons */
.bg-light small.fas.fa-phone-alt.text-primary {
    color: var(--primary) !important;
}

/* ========== RESTORE AND ENHANCE LIST STYLES ========== */

/* Restore list styles for all lists */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0 !important;
}

/* Custom bullet points for unordered lists */
ul li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
}

ul li::before {
    content: "●" !important;
    color: var(--primary) !important;
    font-size: 1.2rem !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-weight: bold !important;
}

/* Custom numbering for ordered lists */
ol {
    counter-reset: custom-counter !important;
}

ol li {
    position: relative !important;
    padding-left: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
    counter-increment: custom-counter !important;
}

ol li::before {
    content: counter(custom-counter) "." !important;
    color: var(--primary) !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    background: linear-gradient(135deg, var(--primary), #7a2020) !important;
    color: white !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
}

/* Enhanced bullet styles for different contexts */
.service-list ul li::before,
.feature-list ul li::before {
    content: "✓" !important;
    color: var(--primary) !important;
    background: linear-gradient(135deg, var(--primary), #7a2020) !important;
    color: white !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
}

/* Special bullet for benefits/advantages */
.benefits-list ul li::before,
.advantages-list ul li::before {
    content: "★" !important;
    color: var(--primary) !important;
    font-size: 1.3rem !important;
}

/* Arrow bullets for process steps */
.process-list ul li::before,
.steps-list ul li::before {
    content: "➤" !important;
    color: var(--primary) !important;
    font-size: 1.1rem !important;
}

/* Diamond bullets for highlights */
.highlights-list ul li::before,
.important-list ul li::before {
    content: "♦" !important;
    color: var(--primary) !important;
    font-size: 1rem !important;
}

/* Custom bullets for footer lists */
.footer ul li::before {
    content: "▸" !important;
    color: var(--primary) !important;
    font-size: 1.1rem !important;
}

/* Navigation lists (no bullets) */
.navbar ul,
.nav ul,
.navbar ol,
.nav ol {
    list-style: none !important;
}

.navbar li::before,
.nav li::before {
    display: none !important;
}

/* Breadcrumb lists (no bullets) */
.breadcrumb li::before {
    display: none !important;
}

/* Social media lists (no bullets) */
.social-icons li::before,
.social-list li::before {
    display: none !important;
}

/* ========== ENHANCED LIST ANIMATIONS ========== */

/* Hover effects for list items */
ul li:hover::before {
    transform: scale(1.2) !important;
    transition: transform 0.3s ease !important;
}

ol li:hover::before {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(94, 25, 25, 0.3) !important;
}

/* Nested lists styling */
ul ul li::before {
    content: "○" !important;
    color: var(--secondary) !important;
    font-size: 1rem !important;
}

ul ul ul li::before {
    content: "▪" !important;
    color: var(--primary) !important;
    font-size: 0.8rem !important;
}

ol ol li::before {
    background: linear-gradient(135deg, var(--secondary), #5a6063) !important;
    font-size: 0.8rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* Special styling for content lists */
.content-list ul li,
.article-list ul li,
.post-list ul li {
    padding-left: 2.5rem !important;
    margin-bottom: 0.8rem !important;
    border-left: 3px solid transparent !important;
    transition: border-color 0.3s ease !important;
}

.content-list ul li:hover,
.article-list ul li:hover,
.post-list ul li:hover {
    border-left-color: var(--primary) !important;
    background: rgba(94, 25, 25, 0.05) !important;
    padding-left: 2.8rem !important;
    transition: all 0.3s ease !important;
}

.content-list ul li::before,
.article-list ul li::before,
.post-list ul li::before {
    content: "📄" !important;
    font-size: 1rem !important;
    left: 0.5rem !important;
}

/* Service features lists */
.service-features ul li::before {
    content: "⚡" !important;
    color: var(--primary) !important;
    font-size: 1.1rem !important;
}

/* Safety lists */
.safety-list ul li::before {
    content: "🛡️" !important;
    font-size: 1rem !important;
}

/* Quality lists */
.quality-list ul li::before {
    content: "🏆" !important;
    font-size: 1rem !important;
}

/* Team skills lists */
.skills-list ul li::before {
    content: "🔧" !important;
    font-size: 1rem !important;
}

/* Project lists */
.project-list ul li::before {
    content: "🏗️" !important;
    font-size: 1rem !important;
}

/* Achievement lists */
.achievement-list ul li::before {
    content: "🎯" !important;
    font-size: 1rem !important;
}

/* Responsive list styling */
@media (max-width: 768px) {
    ul li {
        padding-left: 1.5rem !important;
    }

    ol li {
        padding-left: 2rem !important;
    }

    ul li::before {
        font-size: 1rem !important;
    }

    ol li::before {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    ul li {
        padding-left: 1.2rem !important;
    }

    ol li {
        padding-left: 1.8rem !important;
    }

    ul li::before {
        font-size: 0.9rem !important;
    }

    ol li::before {
        width: 1.3rem !important;
        height: 1.3rem !important;
        font-size: 0.7rem !important;
    }
}

/* ========== SPECIAL FEATURE POINTS STYLING ========== */

/* Container for service features */
.service-features {
    margin: 2rem 0 !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.03), rgba(63, 69, 71, 0.03)) !important;
    border-radius: 15px !important;
    border-left: 4px solid var(--primary) !important;
}

/* Individual feature points */
.feature-point {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1.2rem !important;
    padding: 0.8rem 1rem !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 15px rgba(94, 25, 25, 0.1) !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.feature-point:last-child {
    margin-bottom: 0 !important;
}

/* Hover effects for feature points */
.feature-point:hover {
    transform: translateX(10px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.2) !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(255, 255, 255, 0.95)) !important;
}

/* Animated background effect */
.feature-point::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(94, 25, 25, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
}

.feature-point:hover::before {
    left: 100% !important;
}

/* Custom icons for feature points */
.feature-point i {
    color: var(--primary) !important;
    font-size: 1.2rem !important;
    margin-right: 1rem !important;
    width: 2rem !important;
    height: 2rem !important;
    background: linear-gradient(135deg, var(--primary), #7a2020) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(94, 25, 25, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.feature-point:hover i {
    transform: rotate(360deg) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(94, 25, 25, 0.4) !important;
}

/* Feature point text */
.feature-point span {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--secondary) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.feature-point:hover span {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Specific styling for each feature */
.feature-point:nth-child(1) {
    border-left: 4px solid #ff6b6b !important;
}

.feature-point:nth-child(1) i {
    background: linear-gradient(135deg, #ff6b6b, var(--primary)) !important;
}

.feature-point:nth-child(2) {
    border-left: 4px solid #4ecdc4 !important;
}

.feature-point:nth-child(2) i {
    background: linear-gradient(135deg, #4ecdc4, var(--primary)) !important;
}

.feature-point:nth-child(3) {
    border-left: 4px solid #45b7d1 !important;
}

.feature-point:nth-child(3) i {
    background: linear-gradient(135deg, #45b7d1, var(--primary)) !important;
}

/* Pulse animation for icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.feature-point i {
    animation: pulse 2s infinite ease-in-out !important;
}

.feature-point:hover i {
    animation: none !important;
}

/* Slide-in animation for feature points */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-point {
    animation: slideInRight 0.6s ease-out !important;
}

.feature-point:nth-child(1) {
    animation-delay: 0.1s !important;
}

.feature-point:nth-child(2) {
    animation-delay: 0.2s !important;
}

.feature-point:nth-child(3) {
    animation-delay: 0.3s !important;
}

/* Responsive design for feature points */
@media (max-width: 768px) {
    .service-features {
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
    }

    .feature-point {
        padding: 0.6rem 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    .feature-point i {
        width: 1.8rem !important;
        height: 1.8rem !important;
        font-size: 1rem !important;
        margin-right: 0.8rem !important;
    }

    .feature-point span {
        font-size: 1rem !important;
    }

    .feature-point:hover {
        transform: translateX(5px) scale(1.01) !important;
    }
}

@media (max-width: 576px) {
    .feature-point {
        padding: 0.5rem 0.6rem !important;
    }

    .feature-point i {
        width: 1.6rem !important;
        height: 1.6rem !important;
        font-size: 0.9rem !important;
        margin-right: 0.6rem !important;
    }

    .feature-point span {
        font-size: 0.95rem !important;
    }
}

/* ========== CLEAN PROFESSIONAL SERVICE SECTION ========== */

/* Main container */
.container-xxl.service {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    padding: 4rem 0;
    position: relative;
}

.container-xxl.service::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(94, 25, 25, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.service .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

/* Header section */
.service .text-center {
    margin-bottom: 3rem;
}

.service .text-center h6 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.service .text-center h6::before,
.service .text-center h6::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.service .text-center h6::before { left: -60px; }
.service .text-center h6::after { right: -60px; }

.service .text-center h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service .text-center p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Navigation pills */
.service .nav-pills {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(94, 25, 25, 0.1);
}

/* Navigation buttons */
.service .nav-link {
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service .nav-link:last-child {
    margin-bottom: 0;
}

.service .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 25, 25, 0.05), transparent);
    transition: left 0.5s ease;
}

.service .nav-link:hover::before,
.service .nav-link.active::before {
    left: 100%;
}

.service .nav-link.active,
.service .nav-link:hover {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(94, 25, 25, 0.02));
    border-left-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(94, 25, 25, 0.1);
}

/* Service icons */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper::after {
    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);
    transition: all 0.6s ease;
    opacity: 0;
}

.service .nav-link:hover .service-icon-wrapper::after {
    opacity: 1;
    animation: shine 1s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.service-icon-wrapper i {
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

/* Service text */
.service-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.service-text small {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service .nav-link.active .service-text h4,
.service .nav-link:hover .service-text h4 {
    color: var(--primary);
}

.service .nav-link.active .service-text small,
.service .nav-link:hover .service-text small {
    color: var(--primary);
}

/* Content card container */
.service-content-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    min-height: 550px;
    border: 1px solid rgba(94, 25, 25, 0.05);
    position: relative;
    overflow: hidden;
}

.service-content-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(94, 25, 25, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

/* Service header */
.service-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-badge {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(94, 25, 25, 0.25);
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
}

.service-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 2px;
}

.service-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Service features */
.service-features {
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.feature-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.02), rgba(248, 249, 250, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(94, 25, 25, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-point::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(94, 25, 25, 0.02));
    border-radius: 15px;
    transition: width 0.3s ease;
    z-index: -1;
}

.feature-point:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.1);
}

.feature-point:hover::before {
    width: 100%;
}

.feature-point:last-child {
    margin-bottom: 0;
}

.feature-point i {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-right: 1.2rem;
    box-shadow: 0 4px 12px rgba(94, 25, 25, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-point:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(94, 25, 25, 0.35);
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.feature-point:hover .feature-content h5 {
    color: var(--primary);
}

/* Service action */
.service-action {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.service .btn {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(94, 25, 25, 0.25);
    position: relative;
    overflow: hidden;
}

.service .btn::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: left 0.5s ease;
}

.service .btn:hover::before {
    left: 100%;
}

.service .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.35);
}

.service .btn i {
    margin-left: 0.6rem;
    transition: transform 0.3s ease;
}

.service .btn:hover i {
    transform: translateX(4px);
}

.service .btn:hover i {
    transform: translateX(4px);
}

/* Tab content */
.service .tab-content {
    padding: 0;
}

.service .tab-pane {
    padding: 0;
    min-height: auto;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large screens */
@media (max-width: 1200px) {
    .service .text-center h1 {
        font-size: 2.4rem;
    }

    .service-content-card {
        padding: 2rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .container-xxl.service {
        padding: 3rem 0;
    }

    .service .text-center h1 {
        font-size: 2.2rem;
    }

    .service .text-center h6::before,
    .service .text-center h6::after {
        display: none;
    }

    .service .col-lg-4,
    .service .col-lg-8 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .service .nav-pills {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .service .nav-link {
        min-width: 220px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 1rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .container-xxl.service {
        padding: 2rem 0;
    }

    .service .text-center {
        margin-bottom: 2rem;
    }

    .service .text-center h1 {
        font-size: 1.9rem;
    }

    .service .text-center p {
        font-size: 1.1rem;
    }

    .service .nav-pills {
        flex-direction: column;
        padding: 1rem;
    }

    .service .nav-link {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.8rem;
        padding: 1.2rem 1rem;
    }

    .service-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }

    .service-icon-wrapper i {
        font-size: 1.3rem;
    }

    .service-text h4 {
        font-size: 1.1rem;
    }

    .service-text small {
        font-size: 0.85rem;
    }

    .service-content-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .service-title {
        font-size: 1.6rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .service-features {
        margin: 1.5rem 0;
    }

    .feature-point {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .feature-point i {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
        margin-right: 1rem;
    }

    .feature-content h5 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .service .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .service .text-center h1 {
        font-size: 1.6rem;
    }

    .service .text-center p {
        font-size: 1rem;
    }

    .service .nav-pills {
        padding: 0.8rem;
    }

    .service .nav-link {
        padding: 1rem 0.8rem;
    }

    .service-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 0.6rem;
    }

    .service-icon-wrapper i {
        font-size: 1.1rem;
    }

    .service-text h4 {
        font-size: 1rem;
    }

    .service-text small {
        font-size: 0.8rem;
    }

    .service-content-card {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .feature-point {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .feature-point i {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
        margin-right: 0.8rem;
    }

    .feature-content h5 {
        font-size: 0.95rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .service .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service .wow {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== VISIBILITY FIXES ========== */

.service * {
    visibility: visible;
    opacity: 1;
}

.service .tab-pane:not(.show) {
    display: none;
}

.service .tab-pane.show {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large screens */
@media (max-width: 1200px) {
    .service .text-center h1 {
        font-size: 2.4rem;
    }

    .service .tab-content {
        padding: 2rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .container-xxl.service {
        padding: 3rem 0;
    }

    .service .text-center h1 {
        font-size: 2.2rem;
    }

    .service .text-center h6::before,
    .service .text-center h6::after {
        display: none;
    }

    .service .col-lg-4,
    .service .col-lg-8 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .service .nav-pills {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .service .nav-link {
        min-width: 220px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 1rem;
    }

}

/* Small screens */
@media (max-width: 768px) {
    .container-xxl.service {
        padding: 2rem 0;
    }

    .service .text-center {
        margin-bottom: 2rem;
    }

    .service .text-center h1 {
        font-size: 1.9rem;
    }

    .service .text-center p {
        font-size: 1.1rem;
    }

    .service .nav-pills {
        flex-direction: column;
        padding: 1rem;
    }

    .service .nav-link {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.8rem;
        padding: 1.2rem 1rem;
    }

    .service-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }

    .service-icon-wrapper i {
        font-size: 1.3rem;
    }

    .service-text h4 {
        font-size: 1.1rem;
    }

    .service-text small {
        font-size: 0.85rem;
    }

    .service-content-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .service-title {
        font-size: 1.6rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .service-features {
        margin: 1.5rem 0;
    }

    .feature-point {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .feature-point i {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
        margin-right: 1rem;
    }

    .feature-content h5 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .service .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .service .text-center h1 {
        font-size: 1.6rem;
    }

    .service .text-center p {
        font-size: 1rem;
    }

    .service .nav-pills {
        padding: 0.8rem;
    }

    .service .nav-link {
        padding: 1rem 0.8rem;
    }

    .service-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 0.6rem;
    }

    .service-icon-wrapper i {
        font-size: 1.1rem;
    }

    .service-text h4 {
        font-size: 1rem;
    }

    .service-text small {
        font-size: 0.8rem;
    }

    .service-content-card {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .feature-point {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .feature-point i {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
        margin-right: 0.8rem;
    }

    .feature-content h5 {
        font-size: 0.95rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .service .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service .wow {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== VISIBILITY FIXES ========== */

.service * {
    visibility: visible;
    opacity: 1;
}

.service .tab-pane:not(.show) {
    display: none;
}

.service .tab-pane.show {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Fix responsive design for service section */
@media (max-width: 992px) {
    .service .col-lg-4,
    .service .col-lg-8 {
        flex: none !important;
        width: 100% !important;
        min-width: auto !important;
        margin-bottom: 2rem !important;
    }

    .service .nav-pills {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0.5rem !important;
    }

    .service .nav-link {
        min-width: 200px !important;
        flex-shrink: 0 !important;
    }

    .service .tab-content {
        margin-top: 2rem !important;
    }
}

@media (max-width: 768px) {
    .service .col-md-6 {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    .service-image-container {
        height: 250px !important;
    }

    .service-content {
        padding: 1.5rem !important;
    }

    .service-title {
        font-size: 1.5rem !important;
    }

    .service .nav-pills {
        flex-direction: column !important;
    }

    .service .nav-link {
        min-width: auto !important;
        min-height: 70px !important;
        padding: 1rem !important;
    }

    .service-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
    }

    .service-icon-wrapper i {
        font-size: 1.2rem !important;
    }

    .service-text h4 {
        font-size: 1rem !important;
    }

    .service-text small {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .container-xxl.service {
        padding: 2rem 0 !important;
    }

    .service .container {
        padding: 0 10px !important;
    }

    .service .tab-content {
        padding: 1rem !important;
        min-height: 400px !important;
    }

    .service-tab-card {
        min-height: 350px !important;
        padding: 0.5rem !important;
    }

    .service-image-container {
        height: 200px !important;
    }

    .service-content {
        padding: 1rem !important;
    }

    .service-title {
        font-size: 1.3rem !important;
    }

    .service-description {
        font-size: 0.9rem !important;
    }

    .feature-point {
        padding: 0.5rem 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .feature-point i {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .feature-point span {
        font-size: 0.9rem !important;
    }
}

/* Ensure all service elements are visible */
.service * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix any hidden tab panes */
.service .tab-pane {
    display: block !important;
}

.service .tab-pane:not(.show) {
    display: none !important;
}

.service .tab-pane.show {
    display: block !important;
}

/* Fix WOW animations that might hide content */
.service .wow {
    visibility: visible !important;
    animation-name: none !important;
}

/* Ensure proper spacing */
.service .mb-5 {
    margin-bottom: 3rem !important;
}

.service .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Fix text center alignment */
.service .text-center {
    text-align: center !important;
}

.service .text-center * {
    text-align: center !important;
}

/* Fix button styling */
.service .btn {
    display: inline-block !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.service .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3) !important;
}



/* ========== CONTACT CARDS LAYOUT ========== */

/* Contact cards container */
.contact__cards__container {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

/* Individual contact cards */
.contact__card {
    flex: 1 !important;
    min-width: 280px !important;
    max-width: 350px !important;
    margin: 0 !important;
}

/* Center cards (Online Presence & Call Us Now) */
.contact__card--center {
    order: 1 !important;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(63, 69, 71, 0.05)) !important;
    border: 2px solid rgba(94, 25, 25, 0.1) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.15) !important;
}

/* Location card */
.contact__card:not(.contact__card--center) {
    order: 2 !important;
}

/* Contact card inner styling */
.contact__card__inner {
    text-align: center !important;
    padding: 2rem 1rem !important;
}

/* Contact icon styling */
.contact__icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, var(--primary), #7a2020) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3) !important;
    transition: all 0.3s ease !important;
}

.contact__card:hover .contact__icon {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.4) !important;
}

/* Contact details styling */
.contact__details h3 {
    color: var(--primary) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.contact__details p {
    color: var(--secondary) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

.contact__details a {
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.contact__details a:hover {
    color: #7a2020 !important;
    text-decoration: underline !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact__cards__container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }

    .contact__card {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .contact__card--center {
        transform: none !important;
        order: 0 !important;
    }

    .contact__card:not(.contact__card--center) {
        order: 1 !important;
    }
}

/* ========== GET IN TOUCH SECTION ENHANCEMENTS ========== */

/* Enhanced contact card hover effects with red border */
.contact__card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    border: 2px solid var(--primary) !important;
    border-top: 4px solid var(--primary) !important;
    transition: all 0.3s ease !important;
}

/* Ensure all contact section text is centered */
.htc__contact__address,
.htc__contact__address *,
.contact__section__title,
.contact__section__title *,
.contact__cards__container,
.contact__cards__container *,
.contact__card,
.contact__card *,
.contact__card__inner,
.contact__card__inner *,
.contact__details,
.contact__details *,
.contact__icon,
.title__line,
.text--theme {
    text-align: center !important;
}

/* Specific contact card content centering */
.contact__details h3,
.contact__details p,
.contact__details a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact section title centering */
.contact__section__title h2,
.contact__section__title p {
    text-align: center !important;
    margin: 0 auto !important;
}

/* ========== TEXT INSIDE IMAGES CENTER ALIGNMENT ========== */

/* Image overlays and captions */
.image-overlay,
.img-overlay,
.overlay,
.caption,
.image-caption,
.img-caption {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Brand overlays */
.brand__overlay,
.brand__info,
.brand-overlay,
.brand-info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Partner overlays */
.partner-overlay,
.partner-info,
.partner__overlay,
.partner__info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Team member overlays */
.team-overlay,
.team-info,
.member-overlay,
.member-info,
.team-member-overlay {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Service overlays */
.service-overlay,
.service-info,
.feature-overlay,
.feature-info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Carousel captions */
.carousel-caption,
.carousel-item .caption,
.carousel-overlay {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* General overlay text */
.overlay-content,
.overlay-text,
.image-content,
.image-text {
    text-align: center !important;
    width: 100% !important;
}

/* Overlay headings */
.overlay h1,
.overlay h2,
.overlay h3,
.overlay h4,
.overlay h5,
.overlay h6,
.image-overlay h1,
.image-overlay h2,
.image-overlay h3,
.image-overlay h4,
.image-overlay h5,
.image-overlay h6 {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Overlay paragraphs */
.overlay p,
.image-overlay p,
.caption p,
.overlay-content p {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Specific brand and partner text centering */
.brand__info h5,
.brand__info p,
.partner-info h5,
.partner-info p,
.brand-overlay h5,
.brand-overlay p,
.partner-overlay h5,
.partner-overlay p {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Team member info centering */
.member-info h5,
.member-info p,
.team-info h5,
.team-info p,
.team-overlay h5,
.team-overlay p {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Ensure all text inside positioned elements is centered */
[style*="position: absolute"] *,
[style*="position: relative"] *,
.position-absolute *,
.position-relative * {
    text-align: center !important;
}

/* ========== SPECIFIC IMAGE TEXT CENTERING ========== */

/* Brand section specific */
.brand__item .brand__overlay .brand__info h5,
.brand__item .brand__overlay .brand__info p {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Partner section specific */
.partner-item .partner-overlay .partner-info h5,
.partner-item .partner-overlay .partner-info p {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Team section specific */
.team-member .team-overlay .team-info h5,
.team-member .team-overlay .team-info p,
.team-item .member-overlay .member-info h5,
.team-item .member-overlay .member-info p {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Service section specific */
.service-item .service-overlay .service-info h5,
.service-item .service-overlay .service-info p {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Image hover effects text centering */
.image-hover-effect *,
.hover-overlay *,
.hover-content * {
    text-align: center !important;
}

/* Card overlays */
.card-img-overlay *,
.card-overlay *,
.img-overlay * {
    text-align: center !important;
}

/* Figure captions */
figure figcaption,
.figure-caption,
.img-caption {
    text-align: center !important;
}

/* Any div with background image */
div[style*="background-image"] *,
.bg-image *,
.background-image * {
    text-align: center !important;
}

/* Ensure flex containers center their text */
.d-flex *,
.flex-container *,
.flex-content * {
    text-align: center !important;
}

/* Grid containers */
.d-grid *,
.grid-container *,
.grid-content * {
    text-align: center !important;
}

/* ========== FORCE CENTER ALIGNMENT - HIGHEST PRIORITY ========== */

/* Override all possible text alignment with maximum specificity */
html body * {
    text-align: center !important;
}

html body *:not(br):not(hr):not(wbr):not(img):not(svg):not(canvas):not(video):not(audio):not(iframe):not(object):not(embed) {
    text-align: center !important;
}

/* Override Bootstrap and other framework classes */
.text-left,
.text-start,
.text-right,
.text-end,
.text-justify {
    text-align: center !important;
}

/* Override inline styles */
[style*="text-align: left"],
[style*="text-align: right"],
[style*="text-align: justify"],
[style*="text-align:left"],
[style*="text-align:right"],
[style*="text-align:justify"] {
    text-align: center !important;
}

/* Force center for all text elements with maximum specificity */
html body div *,
html body section *,
html body article *,
html body aside *,
html body header *,
html body footer *,
html body main *,
html body nav * {
    text-align: center !important;
}

/* Override any possible conflicting classes */
.justify-content-start *,
.justify-content-end *,
.align-items-start *,
.align-items-end *,
.text-md-left *,
.text-lg-left *,
.text-xl-left *,
.text-md-right *,
.text-lg-right *,
.text-xl-right * {
    text-align: center !important;
}

/* Force center for specific problematic elements */
p, span, div, h1, h2, h3, h4, h5, h6, a, li, td, th, label, small, strong, em, b, i {
    text-align: center !important;
}

/* Override flexbox text alignment */
.d-flex *,
.flex-row *,
.flex-column *,
.justify-content-between *,
.justify-content-around *,
.justify-content-evenly * {
    text-align: center !important;
}

/* Override grid text alignment */
.row *,
.col *,
[class*="col-"] * {
    text-align: center !important;
}

/* Override card text alignment */
.card *,
.card-body *,
.card-header *,
.card-footer *,
.card-title *,
.card-text * {
    text-align: center !important;
}

/* Override list text alignment */
ul *, ol *, li * {
    text-align: center !important;
}

/* Override table text alignment */
table *, thead *, tbody *, tr *, td *, th * {
    text-align: center !important;
}

/* Override form text alignment */
form *, .form-group *, .form-control *, .form-label * {
    text-align: center !important;
}

/* Override button text alignment */
button *, .btn *, .button * {
    text-align: center !important;
}

/* Override navigation text alignment */
.navbar *, .nav *, .nav-link *, .dropdown * {
    text-align: center !important;
}

/* Override modal text alignment */
.modal *, .modal-body *, .modal-header *, .modal-footer * {
    text-align: center !important;
}

/* Override alert text alignment */
.alert *, .notification * {
    text-align: center !important;
}

/* Override badge text alignment */
.badge *, .label * {
    text-align: center !important;
}

/* Override breadcrumb text alignment */
.breadcrumb *, .breadcrumb-item * {
    text-align: center !important;
}

/* Override pagination text alignment */
.pagination *, .page-item *, .page-link * {
    text-align: center !important;
}

/* Override progress text alignment */
.progress *, .progress-bar * {
    text-align: center !important;
}

/* Override tooltip and popover text alignment */
.tooltip *, .popover * {
    text-align: center !important;
}

/* Override carousel text alignment */
.carousel *, .carousel-item *, .carousel-caption * {
    text-align: center !important;
}

/* Override accordion text alignment */
.accordion *, .accordion-item *, .accordion-body * {
    text-align: center !important;
}

/* Override tab text alignment */
.tab-content *, .tab-pane *, .nav-tabs * {
    text-align: center !important;
}

/* Override offcanvas text alignment */
.offcanvas *, .offcanvas-body *, .offcanvas-header * {
    text-align: center !important;
}

/* ========== NUCLEAR OPTION - FORCE CENTER EVERYTHING ========== */

/* Use CSS custom properties to force center alignment */
:root {
    --text-align: center;
}

/* Apply to absolutely everything with maximum specificity */
*:not(br):not(hr):not(wbr):not(img):not(svg):not(canvas):not(video):not(audio):not(iframe):not(object):not(embed) {
    text-align: center !important;
    text-align: var(--text-align) !important;
}

/* Force center with pseudo-elements */
*::before,
*::after {
    text-align: center !important;
}

/* Override any CSS framework classes */
[class*="text-"],
[class*="align-"],
[class*="justify-"] {
    text-align: center !important;
}

/* Override any data attributes */
[data-*] {
    text-align: center !important;
}

/* Override any role attributes */
[role] {
    text-align: center !important;
}

/* Override any aria attributes */
[aria-*] {
    text-align: center !important;
}

/* Force center for all possible selectors */
body *,
html *,
*,
* {
    text-align: center !important;
}

/* Override computed styles */
* {
    text-align: center !important;
    text-align: center;
}

/* Use JavaScript fallback approach in CSS */
@supports (text-align: center) {
    * {
        text-align: center !important;
    }
}

/* Media query override for all screen sizes */
@media screen {
    * {
        text-align: center !important;
    }
}

@media print {
    * {
        text-align: center !important;
    }
}

@media all {
    * {
        text-align: center !important;
    }
}

/* Override for all possible states */
*:hover,
*:focus,
*:active,
*:visited,
*:link {
    text-align: center !important;
}

/* Override for all possible pseudo-classes */
*:first-child,
*:last-child,
*:nth-child(n),
*:first-of-type,
*:last-of-type,
*:nth-of-type(n) {
    text-align: center !important;
}

/* Override for disabled and readonly elements */
*:disabled,
*:readonly,
*[disabled],
*[readonly] {
    text-align: center !important;
}

/* Override for form elements specifically */
input,
textarea,
select,
option,
optgroup {
    text-align: center !important;
}

/* Override for table elements specifically */
table,
thead,
tbody,
tfoot,
tr,
td,
th,
caption {
    text-align: center !important;
}

/* Override for list elements specifically */
ul,
ol,
li,
dl,
dt,
dd {
    text-align: center !important;
}

/* Override for semantic elements specifically */
header,
footer,
main,
section,
article,
aside,
nav,
figure,
figcaption {
    text-align: center !important;
}

/*** Service Tab Cards ***/
.service-tab-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-tab-card .row {
    height: 100%;
    align-items: stretch;
}

.service-tab-card .col-md-6 {
    display: flex;
    flex-direction: column;
}

.service-tab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
}

.service-image-container {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
}

.service-image-container img {
    transition: transform 0.5s ease;
}

.service-tab-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.8), rgba(255, 107, 107, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-tab-card:hover .service-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.overlay-content h4 {
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 350px;
    padding-left: 1rem;
}

.service-badge {
    margin-bottom: 1rem;
}

.service-badge span {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
}

.service-features {
    margin-bottom: 2rem;
}

.feature-point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.feature-point:hover {
    transform: translateX(5px);
}

.feature-point span {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

/* Service Section Responsive */
@media (max-width: 992px) {
    .service-tab-card {
        padding: 1.5rem;
    }

    .service-image-container {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .service-content {
        padding-left: 0;
        height: 250px;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-nav-btn {
        padding: 1.25rem !important;
    }

    .service-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .service-icon-wrapper i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .service-tab-card {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .service-image-container {
        height: 200px;
    }

    .service-content {
        height: 200px;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .service-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .service-nav-btn {
        padding: 1rem !important;
        border-radius: 10px !important;
    }

    .service-text h4 {
        font-size: 1.1rem;
    }

    .service-text small {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .service-tab-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .service-image-container {
        height: 180px;
    }

    .service-content {
        height: auto;
        min-height: 180px;
    }

    .service-title {
        font-size: 1.6rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .service-features {
        margin-bottom: 1.5rem;
    }

    .feature-point {
        margin-bottom: 0.75rem;
    }

    .feature-point span {
        font-size: 0.9rem;
    }

    .service-nav-btn {
        padding: 0.75rem !important;
        margin: 0 0.5rem 1rem 0.5rem !important;
    }

    .service-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem !important;
    }

    .service-icon-wrapper i {
        font-size: 1.1rem;
    }

    .service-text h4 {
        font-size: 1rem;
    }

    .service-text small {
        font-size: 0.8rem;
    }

    .overlay-content i {
        font-size: 2rem;
    }

    .overlay-content h4 {
        font-size: 1rem;
    }
}


/*** Team Section Enhanced ***/
.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Team grid background removed */

/* Hide old h6 description */
.team-header-enhanced h6 {
    display: none;
}

.team-header-enhanced {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

/*** Enhanced Badge ***/
.team-badge-container {
    margin-bottom: 2rem;
    position: relative;
}

.team-badge {
    position: relative;
    display: inline-block;
}

.badge-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), #7a2020, var(--primary));
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-badge:hover .badge-glow {
    opacity: 0.7;
    animation: pulse 2s infinite;
}

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

.badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.team-badge:hover .badge-text::before {
    left: 100%;
}

/*** Enhanced Title ***/
.team-title-enhanced {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-main {
    color: var(--secondary);
    font-size: 3rem;
    letter-spacing: 2px;
    position: relative;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.5rem;
    letter-spacing: 4px;
    text-shadow: 0 4px 8px rgba(94, 25, 25, 0.2);
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    border-radius: 2px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 120px; }
}

/*** Enhanced Subtitle ***/
.team-subtitle-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.subtitle-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: relative;
}

.subtitle-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(94, 25, 25, 0.5);
}

.subtitle-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}

/*** Enhanced Description ***/
.team-description-enhanced {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-text {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
    position: relative;
    padding: 0 1rem;
}

.description-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.description-text::after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.description-highlight {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.1), rgba(255, 107, 107, 0.1));
    padding: 1.5rem 2rem;
    border-radius: 25px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(94, 25, 25, 0.1);
    position: relative;
    overflow: hidden;
}

.description-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.description-highlight:hover::before {
    left: 100%;
}

.description-highlight span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.description-highlight i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/*** Responsive Design for Enhanced Team Header ***/
@media (max-width: 1200px) {
    .team-title-enhanced {
        font-size: 3.5rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-highlight {
        font-size: 4rem;
    }

    .subtitle-text {
        font-size: 1.4rem;
    }

    .description-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .team-header-enhanced {
        margin-bottom: 3rem;
    }

    .team-title-enhanced {
        font-size: 3rem;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-highlight {
        font-size: 3.5rem;
    }

    .subtitle-text {
        font-size: 1.3rem;
    }

    .description-text {
        font-size: 1.1rem;
    }

    .team-subtitle-enhanced {
        gap: 1.5rem;
    }

    .subtitle-line {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .team-badge-container {
        margin-bottom: 1.5rem;
    }

    .badge-text {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .team-title-enhanced {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 1.8rem;
    }

    .title-highlight {
        font-size: 3rem;
    }

    .title-highlight::after {
        width: 80px;
    }

    .team-subtitle-enhanced {
        flex-direction: column;
        gap: 1rem;
    }

    .subtitle-line {
        width: 100px;
    }

    .subtitle-text {
        font-size: 1.2rem;
    }

    .description-text {
        font-size: 1rem;
        text-align: center;
        padding: 0;
    }

    .description-text::before,
    .description-text::after {
        display: none;
    }

    .description-highlight {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .description-highlight span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .team-header-enhanced {
        margin-bottom: 2.5rem;
    }

    .badge-text {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .team-title-enhanced {
        font-size: 2rem;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .title-highlight {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .title-highlight::after {
        width: 60px;
        height: 3px;
    }

    .subtitle-text {
        font-size: 1.1rem;
    }

    .subtitle-line {
        width: 80px;
    }

    .description-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .description-highlight {
        padding: 1rem;
        border-radius: 20px;
    }

    .description-highlight span {
        font-size: 0.9rem;
    }

    .description-highlight i {
        font-size: 1.3rem;
    }
}

/*** Team Cards - Simple and Working ***/
.team-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.team-item .position-relative {
    position: relative;
    overflow: hidden;
}

.team-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-item:hover img {
    transform: scale(1.05);
}

/* Team Overlay - Guaranteed Working */
.team-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(94, 25, 25, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.team-item:hover .team-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force show overlay on hover - Alternative method */
.team-item:hover .team-overlay {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Social Media Buttons - Guaranteed Working */
.team-overlay .btn,
.team-overlay a.btn {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255,255,255,0.2) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.team-overlay .btn:hover,
.team-overlay a.btn:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.1) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.team-overlay .btn:focus,
.team-overlay a.btn:focus {
    color: white !important;
    background: rgba(255,255,255,0.3) !important;
}

/* Ensure icons are visible */
.team-overlay .btn i,
.team-overlay a.btn i {
    color: white !important;
    font-size: 1rem !important;
}

/* Alternative CSS for team overlay - Backup method */
.team-item .position-relative:hover .team-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Force display on parent hover */
.team-item:hover .position-relative .team-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Bootstrap override for team buttons */
.team-overlay .btn-square {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255,255,255,0.2) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px !important;
}

.team-overlay .btn-square:hover {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Team Info Section */
.team-item .bg-light {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
}

.team-item h5 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-item small {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Responsive Design for Team Cards */
@media (max-width: 992px) {
    .team-item img {
        height: 250px;
    }

    .team-overlay .btn {
        width: 40px;
        height: 40px;
        margin: 0 3px;
        font-size: 0.9rem;
    }

    .team-item h5 {
        font-size: 1.1rem;
    }

    .team-item small {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .team-item img {
        height: 220px;
    }

    .team-item .bg-light {
        padding: 1.25rem;
    }

    .team-item h5 {
        font-size: 1rem;
    }

    .team-item small {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .team-item img {
        height: 200px;
    }

    .team-overlay .btn {
        width: 35px;
        height: 35px;
        margin: 0 2px;
        font-size: 0.8rem;
    }

    .team-item .bg-light {
        padding: 1rem;
    }

    .team-item h5 {
        font-size: 0.95rem;
    }

    .team-item small {
        font-size: 0.75rem;
    }
}

/*** Professional Team Section ***/
.team-section-pro {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Team section pro grid background removed */

.team-header-pro {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

/*** Professional Badge ***/
.section-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-badge span {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.section-badge span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.section-badge:hover span::before {
    left: 100%;
}

/*** Professional Title ***/
.team-main-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(94, 25, 25, 0.2);
    position: relative;
}

.team-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    border-radius: 2px;
    animation: slideInTitle 1s ease-out;
}

@keyframes slideInTitle {
    from { width: 0; }
    to { width: 120px; }
}

/*** Professional Subtitle ***/
.team-subtitle {
    margin-bottom: 3rem;
}

.team-subtitle h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}

.team-subtitle h3::before,
.team-subtitle h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.team-subtitle h3::before {
    left: -100px;
}

.team-subtitle h3::after {
    right: -100px;
}

/*** Professional Team Grid ***/
.team-grid {
    position: relative;
    z-index: 2;
}

/*** Professional Team Member Cards ***/
.team-member-pro {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(94, 25, 25, 0.1);
}

.team-member-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 3;
}

.team-member-pro:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.team-member-pro:hover::before {
    transform: scaleX(1);
}

/*** Professional Member Image ***/
.member-image-pro {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.member-image-pro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-member-pro:hover .member-image-pro img {
    transform: scale(1.1);
}

/*** Professional Social Overlay ***/
.social-overlay-pro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(94, 25, 25, 0.9) 0%,
        rgba(255, 107, 107, 0.9) 50%,
        rgba(94, 25, 25, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.team-member-pro:hover .social-overlay-pro {
    opacity: 1 !important;
    visibility: visible !important;
}

/*** Professional Social Buttons ***/
.social-buttons-pro {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.social-btn-pro {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-btn-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-btn-pro:hover {
    transform: scale(1.2) rotate(360deg);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.social-btn-pro:hover::before {
    transform: scale(1);
}

.social-btn-pro i {
    position: relative;
    z-index: 2;
    color: white !important;
    line-height: 1;
}

/* Specific Social Button Colors on Hover */
.facebook-btn:hover {
    background: rgba(59, 89, 152, 0.8) !important;
    border-color: rgba(59, 89, 152, 0.9) !important;
}

.twitter-btn:hover {
    background: rgba(29, 161, 242, 0.8) !important;
    border-color: rgba(29, 161, 242, 0.9) !important;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, var(--primary) 0%, #7a2020 25%, var(--primary) 50%, #7a2020 75%, var(--primary) 100%) !important;
    border-color: rgba(188, 24, 136, 0.9) !important;
}

/*** Professional Member Info ***/
.member-info-pro {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.member-info-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    border-radius: 2px;
    opacity: 0;
    transition: all 0.4s ease;
}

.team-member-pro:hover .member-info-pro::before {
    opacity: 1;
}

.member-name-pro {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.member-name-pro::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.team-member-pro:hover .member-name-pro::after {
    width: 100%;
}

.member-position-pro {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*** Professional Skills Tags ***/
.member-skills-pro {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skill-tag-pro {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-tag-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 25, 25, 0.4);
}

/*** Responsive Design for Professional Team ***/
@media (max-width: 1200px) {
    .team-main-title {
        font-size: 3.5rem;
    }

    .member-image-pro {
        height: 280px;
    }

    .social-btn-pro {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .team-main-title {
        font-size: 3rem;
    }

    .member-image-pro {
        height: 250px;
    }

    .social-btn-pro {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .team-subtitle h3::before,
    .team-subtitle h3::after {
        width: 60px;
    }

    .team-subtitle h3::before {
        left: -80px;
    }

    .team-subtitle h3::after {
        right: -80px;
    }
}

@media (max-width: 768px) {
    .team-main-title {
        font-size: 2.5rem;
    }

    .member-image-pro {
        height: 220px;
    }

    .social-btn-pro {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .member-info-pro {
        padding: 1.5rem;
    }

    .team-subtitle h3::before,
    .team-subtitle h3::after {
        display: none;
    }

    .section-badge span {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    .team-main-title {
        font-size: 2rem;
    }

    .member-image-pro {
        height: 200px;
    }

    .social-btn-pro {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .social-buttons-pro {
        gap: 12px;
    }

    .member-info-pro {
        padding: 1.2rem;
    }

    .member-name-pro {
        font-size: 1.2rem;
    }

    .member-position-pro {
        font-size: 0.9rem;
    }

    .skill-tag-pro {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/*** Professional Team Animations ***/
@keyframes shine {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(94, 25, 25, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(94, 25, 25, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 25, 25, 0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.section-badge span {
    animation: pulse 2s infinite;
}

.team-member-pro {
    animation: fadeInUp 0.6s ease-out;
}

.team-member-pro:nth-child(1) { animation-delay: 0.1s; }
.team-member-pro:nth-child(2) { animation-delay: 0.2s; }
.team-member-pro:nth-child(3) { animation-delay: 0.3s; }
.team-member-pro:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced hover effects */
.team-member-pro:hover .social-btn-pro {
    animation: bounce 0.6s ease;
}

.team-member-pro:hover .skill-tag-pro {
    animation: bounce 0.4s ease;
}

.team-member-pro:hover .skill-tag-pro:nth-child(1) { animation-delay: 0.1s; }
.team-member-pro:hover .skill-tag-pro:nth-child(2) { animation-delay: 0.2s; }

/* Additional Professional Touches */
.team-section-pro {
    background-attachment: fixed;
}

.team-member-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(94, 25, 25, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.team-member-pro:hover::after {
    opacity: 1;
}

/* Ensure content is above overlay */
.member-image-pro,
.member-info-pro {
    position: relative;
    z-index: 2;
}

/*** CRITICAL: Ensure Social Media Overlay Works ***/
/* Multiple selectors to ensure compatibility */
.team-member-pro:hover .social-overlay-pro,
.member-image-pro:hover .social-overlay-pro,
.team-member-pro .member-image-pro:hover .social-overlay-pro {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Alternative trigger methods */
.team-member-pro.active .social-overlay-pro,
.team-member-pro:focus .social-overlay-pro,
.team-member-pro:focus-within .social-overlay-pro {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Ensure buttons are clickable */
.social-btn-pro {
    pointer-events: all !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

/* Force display on mobile touch */
@media (max-width: 768px) {
    .team-member-pro:active .social-overlay-pro,
    .member-image-pro:active .social-overlay-pro {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
}

/* Backup CSS for older browsers */
.social-overlay-pro.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Ensure overlay is properly positioned */
.social-overlay-pro {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

/* Additional hover states for better UX */
.team-member-pro:hover {
    cursor: pointer;
}

.team-member-pro:hover .member-image-pro {
    cursor: pointer;
}

/*** Enhanced Team Header Design ***/
.section-badge-enhanced {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding: 2rem;
}

.badge-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.4);
    animation: float 3s ease-in-out infinite;
}

.badge-icon i {
    font-size: 1.5rem;
    color: white;
}

.badge-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.3);
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease;
}

.section-badge-enhanced:hover .badge-text::before {
    left: 100%;
}

.badge-decoration {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.decoration-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/*** Enhanced Main Title ***/
.main-title-container {
    margin-bottom: 3rem;
    position: relative;
}

.team-main-title-enhanced {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-word {
    position: relative;
    display: inline-block;
    animation: slideInTitle 1s ease-out;
}

.title-word.meet {
    color: var(--dark);
    animation-delay: 0.2s;
}

.title-word.our {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.title-word.experts {
    color: var(--primary);
    animation-delay: 0.6s;
}

.title-word:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.underline-segment {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.8s both;
}

.underline-diamond {
    font-size: 1.2rem;
    color: var(--primary);
    animation: rotateDiamond 1s ease-out 1s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes rotateDiamond {
    from { transform: rotate(0deg) scale(0); }
    to { transform: rotate(360deg) scale(1); }
}

/*** Enhanced Subtitle ***/
.team-subtitle-enhanced {
    margin-bottom: 3rem;
    position: relative;
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(94, 25, 25, 0.1);
    position: relative;
    overflow: hidden;
}

.subtitle-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(94, 25, 25, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.subtitle-container:hover::before {
    opacity: 1;
}

.subtitle-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.subtitle-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

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

/*** Enhanced Description ***/
.team-description-enhanced {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(94, 25, 25, 0.1);
    overflow: hidden;
}

.team-description-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
}

.description-quote-start,
.description-quote-end {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
}

.description-quote-start {
    top: 1rem;
    left: 1rem;
}

.description-quote-end {
    bottom: 1rem;
    right: 1rem;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    text-align: justify;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    opacity: 0.3;
}

.description-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.signature-line {
    width: 60px;
    height: 1px;
    background: var(--primary);
}

.signature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/*** Responsive Design for Enhanced Header ***/
@media (max-width: 1200px) {
    .team-main-title-enhanced {
        font-size: 4rem;
    }

    .subtitle-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .team-main-title-enhanced {
        font-size: 3.5rem;
    }

    .subtitle-text {
        font-size: 1.4rem;
    }

    .team-description-enhanced {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .team-main-title-enhanced {
        font-size: 3rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .subtitle-container {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }

    .subtitle-text {
        font-size: 1.2rem;
    }

    .team-description-enhanced {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .description-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .team-main-title-enhanced {
        font-size: 2.5rem;
    }

    .badge-text {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .subtitle-text {
        font-size: 1.1rem;
    }

    .description-quote-start,
    .description-quote-end {
        font-size: 3rem;
    }
}

/*** Hide old description ***/
.team-header-pro h6.text-primary {
    display: none !important;
}

/*** Partners & Clients Section ***/
.partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Partners section grid background removed */

.partners-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

/*** Partners Badge ***/
.section-badge-partners {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding: 2rem;
}

.badge-icon-partners {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.4);
    animation: float 3s ease-in-out infinite;
}

.badge-icon-partners i {
    font-size: 1.5rem;
    color: white;
}

.badge-text-partners {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.3);
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.badge-text-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease;
}

.section-badge-partners:hover .badge-text-partners::before {
    left: 100%;
}

.badge-decoration-partners {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.decoration-line-partners {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.decoration-dot-partners {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/*** Partners Title ***/
.main-title-partners {
    margin-bottom: 3rem;
    position: relative;
}

.partners-main-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-word-partners {
    position: relative;
    display: inline-block;
    animation: slideInTitle 1s ease-out;
}

.title-word-partners.trusted {
    color: var(--dark);
    animation-delay: 0.2s;
}

.title-word-partners.by {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.title-word-partners.leaders {
    color: var(--primary);
    animation-delay: 0.6s;
}

.title-word-partners:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.title-underline-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.underline-segment-partners {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.8s both;
}

.underline-diamond-partners {
    font-size: 1.2rem;
    color: var(--primary);
    animation: rotateDiamond 1s ease-out 1s both;
}

/*** Partners Subtitle ***/
.partners-subtitle {
    margin-bottom: 2rem;
}

.subtitle-text-partners {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/*** Partner Items ***/
.partner-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(94, 25, 25, 0.1);
    margin: 0 15px;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 3;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.partner-item:hover::before {
    transform: scaleX(1);
}

/*** Partner Logo Container ***/
.partner-logo-container {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: grayscale(0.3);
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
    filter: grayscale(0);
}

/*** Partner Overlay ***/
.partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(94, 25, 25, 0.9) 0%,
        rgba(255, 107, 107, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.partner-item:hover .partner-overlay {
    opacity: 1;
    visibility: visible;
}

.partner-info {
    text-align: center;
    color: white;
}

.partner-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
}

.partner-type {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*** Partner Projects ***/
.partner-projects {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.projects-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

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

.projects-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.projects-list li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.projects-list li i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

/*** Partners Carousel ***/
.partners-carousel {
    position: relative;
    z-index: 2;
}

.partners-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.partners-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
    pointer-events: all;
}

.partners-carousel .owl-nav button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.4);
}

.partners-carousel .owl-dots {
    text-align: center;
    margin-top: 3rem;
}

.partners-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(94, 25, 25, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.partners-carousel .owl-dots .owl-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/*** Responsive Design for Partners ***/
@media (max-width: 1200px) {
    .partners-main-title {
        font-size: 3.5rem;
    }

    .partner-logo-container {
        height: 180px;
    }

    .partner-logo {
        max-width: 100px;
        max-height: 100px;
    }
}

@media (max-width: 992px) {
    .partners-main-title {
        font-size: 3rem;
    }

    .partner-logo-container {
        height: 160px;
    }

    .partner-logo {
        max-width: 90px;
        max-height: 90px;
    }

    .partner-projects {
        padding: 1.5rem;
    }

    .projects-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .partners-main-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .partner-logo-container {
        height: 140px;
    }

    .partner-logo {
        max-width: 80px;
        max-height: 80px;
    }

    .partner-projects {
        padding: 1.2rem;
    }

    .projects-title {
        font-size: 1rem;
    }

    .projects-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .partners-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .partners-main-title {
        font-size: 2rem;
    }

    .badge-text-partners {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .partner-logo-container {
        height: 120px;
    }

    .partner-logo {
        max-width: 70px;
        max-height: 70px;
    }

    .partner-projects {
        padding: 1rem;
    }

    .projects-list li {
        font-size: 0.8rem;
    }

    .subtitle-text-partners {
        font-size: 1rem;
    }
}

/*** Additional Animations for Partners ***/
@keyframes partnerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-item {
    animation: partnerSlideIn 0.6s ease-out;
}

.partner-item:nth-child(1) { animation-delay: 0.1s; }
.partner-item:nth-child(2) { animation-delay: 0.2s; }
.partner-item:nth-child(3) { animation-delay: 0.3s; }
.partner-item:nth-child(4) { animation-delay: 0.4s; }
.partner-item:nth-child(5) { animation-delay: 0.5s; }
.partner-item:nth-child(6) { animation-delay: 0.6s; }

/*** Enhanced Hover Effects ***/
.partner-item:hover .projects-list li {
    animation: bounceInLeft 0.4s ease;
}

.partner-item:hover .projects-list li:nth-child(1) { animation-delay: 0.1s; }
.partner-item:hover .projects-list li:nth-child(2) { animation-delay: 0.2s; }
.partner-item:hover .projects-list li:nth-child(3) { animation-delay: 0.3s; }
.partner-item:hover .projects-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounceInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*** Professional Touches ***/
.partners-section {
    background-attachment: fixed;
}

.partner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(94, 25, 25, 0.03) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.partner-item:hover::after {
    opacity: 1;
}

/* Ensure content is above overlay */
.partner-logo-container,
.partner-projects {
    position: relative;
    z-index: 2;
}

/*** Trusted Partners Brand Area ***/
.htc__brand__area {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* Brand area grid background removed */

.section__title {
    position: relative;
    z-index: 2;
}

/*** Brand Badge ***/
.brand-badge-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.brand-badge-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
    animation: float 3s ease-in-out infinite;
}

.brand-badge-icon i {
    font-size: 1.2rem;
    color: white;
}

.brand-badge-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    border: 2px solid rgba(255,255,255,0.3);
}

/*** Brand Title ***/
.title__line {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.title-word {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.our-brand {
    color: var(--dark);
    animation: slideInLeft 1s ease-out;
}

.trusted-brand {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*** Brand Description ***/
.brand-description {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.brand-description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    text-align: center;
    margin: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

/*** Brand Container ***/
.brand__container {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.brand__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/*** Brand Items ***/
.brand__item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brand__logo-wrapper {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(94, 25, 25, 0.1);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.brand__item:hover .brand__logo-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(94, 25, 25, 0.2);
}

.brand__item:hover .brand__logo-wrapper::before {
    transform: scaleX(1);
}

.brand__logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: grayscale(0.3);
}

.brand__item:hover .brand__logo {
    transform: scale(1.1);
    filter: grayscale(0);
}

/*** Brand Overlay ***/
.brand__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(94, 25, 25, 0.9) 0%,
        rgba(255, 107, 107, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.brand__item:hover .brand__overlay {
    opacity: 1;
    visibility: visible;
}

.brand__info {
    text-align: center;
    color: white;
    padding: 1rem;
}

.brand__info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
}

.brand__info p {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*** Responsive Design for Brand Area ***/
@media (max-width: 1200px) {
    .title__line {
        font-size: 3rem;
    }

    .brand__list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .brand__logo-wrapper {
        height: 160px;
        padding: 1.5rem;
    }

    .brand__logo {
        max-width: 100px;
        max-height: 70px;
    }
}

@media (max-width: 992px) {
    .title__line {
        font-size: 2.5rem;
    }

    .brand__list {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.2rem;
    }

    .brand__logo-wrapper {
        height: 140px;
        padding: 1.2rem;
    }

    .brand__logo {
        max-width: 90px;
        max-height: 60px;
    }

    .brand-description-text {
        font-size: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .title__line {
        font-size: 2rem;
    }

    .brand__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand__logo-wrapper {
        height: 120px;
        padding: 1rem;
    }

    .brand__logo {
        max-width: 80px;
        max-height: 50px;
    }

    .brand-badge-text {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .htc__brand__area {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .title__line {
        font-size: 1.8rem;
    }

    .brand__list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .brand__logo-wrapper {
        height: 100px;
        padding: 0.8rem;
    }

    .brand__logo {
        max-width: 70px;
        max-height: 40px;
    }

    .brand-description-text {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .brand__info h5 {
        font-size: 1rem;
    }

    .brand__info p {
        font-size: 0.8rem;
    }
}

/*** Additional Animations for Brand Area ***/
@keyframes brandFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand__item {
    animation: brandFadeIn 0.6s ease-out;
}

.brand__item:nth-child(1) { animation-delay: 0.1s; }
.brand__item:nth-child(2) { animation-delay: 0.2s; }
.brand__item:nth-child(3) { animation-delay: 0.3s; }
.brand__item:nth-child(4) { animation-delay: 0.4s; }
.brand__item:nth-child(5) { animation-delay: 0.5s; }
.brand__item:nth-child(6) { animation-delay: 0.6s; }

/*** Enhanced Hover Effects for Brand ***/
.brand__item:hover .brand__info h5 {
    animation: bounceIn 0.5s ease;
}

.brand__item:hover .brand__info p {
    animation: bounceIn 0.5s ease 0.1s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*** Professional Touches for Brand Area ***/
.htc__brand__area {
    background-attachment: fixed;
}

.brand__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(94, 25, 25, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 15px;
}

.brand__item:hover::after {
    opacity: 1;
}

/* Ensure content is above overlay */
.brand__logo-wrapper {
    position: relative;
    z-index: 2;
}

/*** Animation Classes for Brand Items ***/
.brand__item.animate-in {
    animation: brandSlideUp 0.8s ease-out forwards;
}

@keyframes brandSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*** Enhanced Mobile Support ***/
.brand__overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/*** Additional Brand Styling ***/
.brand__item {
    cursor: pointer;
}

.brand__link:hover {
    text-decoration: none;
}

.brand__logo-wrapper:hover {
    cursor: pointer;
}

/*** Accessibility Improvements ***/
.brand__item:focus-within .brand__overlay {
    opacity: 1;
    visibility: visible;
}

.brand__link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 15px;
}

/*** Performance Optimizations ***/
.brand__logo {
    will-change: transform, filter;
}

.brand__overlay {
    will-change: opacity, visibility;
}

.brand__logo-wrapper {
    will-change: transform, box-shadow;
}

/*** Hide Old Footer ***/
.container-fluid.footer {
    display: none !important;
}

/*** Contact Address Section - Professional & Clean ***/
.htc__contact__address {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.htc__contact__address .title__line {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.htc__contact__address .text--theme {
    color: var(--primary);
}

.htc__contact__address p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.contact__cards__container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact__card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-top: 4px solid var(--primary);
}



.contact__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.contact__details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.contact__details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact__details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact__details a:hover {
    color: #7a2020;
}

/*** Newsletter Section - Clean & Modern ***/
.htc__newsletter__area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.newsletter__wrap .title__line {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.newsletter__wrap .text--theme {
    color: #7a2020;
}

.newsletter__wrap h4 {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.newsletter__form {
    max-width: 500px;
    margin: 0 auto;
}

.htc__news__inner {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.news__input {
    flex: 1;
}

.news__input input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: #333;
}

.news__input input::placeholder {
    color: #999;
}

.subscribe__btn input {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe__btn input:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.newsletter__thumb {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
}

.newsletter__wrap {
    position: relative;
    z-index: 2;
}

/*** Footer Area - Professional & Elegant ***/
.htc__footer__area {
    position: relative;
}

.footer__top {
    padding: 80px 0;
    position: relative;
    color: white;
}

.footer__top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.htc__footer__wrap {
    position: relative;
    z-index: 2;
}

.footer__widget .ft__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__widget .text--theme {
    color: var(--primary);
}

.ft__details p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 25px;
}

.footer__social__icon {
    margin-top: 30px;
}

.social__icon {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social__icon li a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social__icon li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.4);
}

/*** Footer Map ***/
.footer__map__container {
    margin-top: 20px;
}

.footer__map {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.map__overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map__overlay__content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*** Footer Bottom ***/
.footer__bottom {
    background: rgba(0, 0, 0, 0.95);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #7a2020;
}

/*** Responsive Design ***/
@media (max-width: 992px) {
    .contact__cards__container {
        flex-direction: column;
        align-items: center;
    }

    .contact__card {
        max-width: 400px;
        width: 100%;
    }

    .htc__news__inner {
        flex-direction: column;
        gap: 20px;
    }

    .subscribe__btn input {
        width: 100%;
    }

    .newsletter__thumb {
        display: none;
    }
}

@media (max-width: 768px) {
    .htc__contact__address,
    .htc__newsletter__area,
    .footer__top {
        padding: 60px 0;
    }

    .htc__contact__address .title__line,
    .newsletter__wrap .title__line {
        font-size: 2rem;
    }

    .contact__card {
        padding: 30px 20px;
        min-width: auto;
    }

    .contact__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .social__icon {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .htc__contact__address .title__line,
    .newsletter__wrap .title__line {
        font-size: 1.8rem;
    }

    .contact__card {
        margin-bottom: 20px;
    }

    .news__input input,
    .subscribe__btn input {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .footer__widget .ft__title {
        font-size: 1.3rem;
    }

    .ft__details p {
        font-size: 0.9rem;
    }
}

/*** Subscription Message Styling ***/
.subscription-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
}

.subscription-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.subscription-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/*** Additional Professional Touches ***/
.contact__card {
    animation: fadeInUp 0.6s ease-out;
}

.contact__card:nth-child(1) { animation-delay: 0.1s; }
.contact__card:nth-child(2) { animation-delay: 0.2s; }
.contact__card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all interactive elements */
.contact__card,
.news__input input,
.subscribe__btn input,
.social__icon li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*** Partnership Projects Page Styles ***/

/* Partnership Header */
.partnership-header {
    margin-bottom: 4rem;
}

.section-badge-partnership {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.badge-icon-partnership {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
    animation: float 3s ease-in-out infinite;
}

.badge-icon-partnership i {
    font-size: 1.2rem;
    color: white;
}

.badge-text-partnership {
    background: linear-gradient(135deg, var(--primary) 0%, #7a2020 50%, var(--primary) 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    border: 2px solid rgba(255,255,255,0.3);
}

.badge-decoration-partnership {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 2px;
    z-index: -1;
}

.decoration-line-partnership {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    top: 0;
}

.decoration-line-partnership.left {
    left: -80px;
    width: 60px;
    animation: expandLine 2s ease-in-out infinite alternate;
}

.decoration-line-partnership.right {
    right: -80px;
    width: 60px;
    animation: expandLine 2s ease-in-out infinite alternate-reverse;
}

.decoration-dot-partnership {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: rotateDiamond 3s linear infinite;
}

/* Main Title */
.main-title-partnership {
    margin-bottom: 2rem;
}

.partnership-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-word-partnership {
    display: inline-block;
    margin: 0 0.5rem;
    position: relative;
}

.title-word-partnership.projects {
    color: var(--primary);
    animation: slideInTitle 1s ease-out;
}

.title-word-partnership.within {
    color: var(--dark);
    animation: slideInTitle 1s ease-out 0.2s both;
}

.title-word-partnership.contracts {
    color: var(--primary);
    animation: slideInTitle 1s ease-out 0.4s both;
}

.title-underline-partnership {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.underline-segment-partnership {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    border-radius: 2px;
    animation: expandLine 2s ease-in-out infinite alternate;
}

.underline-diamond-partnership {
    color: var(--primary);
    font-size: 1.2rem;
    animation: rotateDiamond 3s linear infinite;
}

/* Subtitle */
.partnership-subtitle {
    margin-top: 2rem;
}

.subtitle-text-partnership {
    font-size: 1.2rem;
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    padding: 1rem 2rem;
    background: rgba(94, 25, 25, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(94, 25, 25, 0.1);
}

/* Partnership Project Cards */
.partnership-project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(94, 25, 25, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partnership-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.partnership-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.partnership-project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    position: relative;
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
    transition: all 0.4s ease;
}

.partnership-project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-icon i {
    font-size: 1.8rem;
    color: white;
}

.project-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(94, 25, 25, 0.2);
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.project-content {
    padding: 0 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--dark);
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
}

.project-description {
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-attachments {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.attachment-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(94, 25, 25, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.attachment-item i {
    font-size: 0.8rem;
}

/* Project Gallery Styles */
.project-gallery {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.gallery-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(94, 25, 25, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(94, 25, 25, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Gallery Modal Styles */
.modal-gallery .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-gallery .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-gallery .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery .modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-gallery .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    opacity: 1;
}

.modal-gallery .btn-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .gallery-overlay i {
        font-size: 1.2rem;
    }

    .modal-gallery .modal-dialog {
        max-width: 95vw;
    }

    .modal-gallery .btn-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-title {
        font-size: 0.9rem;
    }
}

/* Health & Safety Page Styles - Clean Design */

/* Safety Overview Cards */
.safety-overview-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.safety-overview-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.safety-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
}

.safety-icon i {
    color: white;
    font-size: 2rem;
}

.safety-overview-card h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.safety-overview-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.safety-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1rem;
}

/* Safety Stats Grid */
.safety-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
}

.stat-icon i {
    color: white;
    font-size: 1.3rem;
}

.stat-content h3 {
    color: var(--dark);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: #666;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Safety Policy Statement */
.safety-policy-statement {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(94, 25, 25, 0.1);
    transition: all 0.4s ease;
}

.safety-policy-statement:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.15);
}

.policy-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.policy-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
}

.policy-icon i {
    color: white;
    font-size: 1.8rem;
}

.policy-content h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.policy-content p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.policy-text p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* Safety Objective Cards */
.safety-objective-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.safety-objective-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.objective-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
}

.objective-icon i {
    color: white;
    font-size: 1.5rem;
}

.safety-objective-card h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.safety-objective-card p {
    color: #666;
    line-height: 1.6;
}

/* Organization Cards */
.organization-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.organization-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.org-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
}

.org-icon i {
    color: white;
    font-size: 2rem;
}

.organization-card h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.organization-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.org-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.feature-badge {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.1), rgba(255, 107, 53, 0.1));
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(94, 25, 25, 0.2);
}

/* Equipment Cards */
.equipment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.equipment-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(94, 25, 25, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.equipment-overlay i {
    color: white;
    font-size: 2.5rem;
}

.equipment-content {
    padding: 1.5rem;
}

.equipment-content h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.equipment-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.equipment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-item {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(3, 169, 244, 0.1));
    color: #2196F3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Procedure Cards */
.procedure-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.procedure-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.procedure-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
}

.procedure-icon i {
    color: white;
    font-size: 2rem;
}

.procedure-card h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

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

.procedure-list li {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.procedure-list li::before {
    content: '▶';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

/* Enhanced About Section - Clean Professional Design */

/* About Section Enhancements */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.02), rgba(255, 107, 53, 0.02));
    z-index: -1;
}

/* Enhanced Images Container */
.about-images-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.about-image-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.about-image-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.about-image-enhanced img {
    transition: transform 0.6s ease;
}

.about-image-enhanced:hover img {
    transform: scale(1.05);
}

/* Main Image Styling */
.main-image {
    height: 280px;
    flex: 0 0 auto;
    margin-bottom: 1.5rem;
}

/* Secondary Image Styling */
.secondary-image {
    height: 280px;
    flex: 0 0 auto;
}

/* Secondary Image Overlay */
.image-overlay-secondary {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.85), rgba(255, 107, 53, 0.85));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.about-image-enhanced:hover .image-overlay-secondary {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.about-image-enhanced:hover .overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.overlay-content h5 {
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Enhanced Experience Badge */
.experience-badge-enhanced {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.3);
    position: relative;
    overflow: hidden;
}

.experience-badge-enhanced::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: left 0.8s ease;
}

.experience-badge-enhanced:hover::before {
    left: 100%;
}

/* Content and Images Alignment */
.about-content-enhanced {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.content-top {
    flex: 0 0 auto;
}

.content-middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-bottom {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Enhanced Content Styling */
.about-content-enhanced h6 {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 25px;
    border: 1px solid rgba(94, 25, 25, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
}

.about-content-enhanced h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content-enhanced h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    border-radius: 2px;
}

.about-content-enhanced p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

/* Enhanced Feature Items */
.feature-item-enhanced {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #7a2020);
    transition: width 0.3s ease;
}

.feature-item-enhanced:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-item-enhanced:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.15);
}

.feature-number-enhanced {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
}

.feature-item-enhanced:hover .feature-number-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.feature-content-enhanced h6 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-content-enhanced span {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Statistics Counters Section */
.statistics-counters-section {
    padding: 2rem 0;
}

.counter-card {
    background: white;
    border: 1px solid rgba(94, 25, 25, 0.1);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(255, 107, 53, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.counter-card:hover::before {
    opacity: 1;
}

.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(94, 25, 25, 0.2);
    border-color: rgba(94, 25, 25, 0.3);
}

.counter-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.counter-card:hover .counter-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.4);
}

.counter-icon i {
    color: white;
    font-size: 1.8rem;
}

.counter-content {
    position: relative;
    z-index: 2;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.counter-card:hover .counter-number {
    color: var(--primary);
    transform: scale(1.05);
}

.counter-label {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-description {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Newsletter Section */
.newsletter-content {
    padding: 2rem 0;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.newsletter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
}

.newsletter-input {
    height: 55px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(94, 25, 25, 0.1);
    outline: none;
}

.newsletter-btn {
    background: var(--primary);
    color: white;
    border: none;
    height: 55px;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
}

.newsletter-btn:hover {
    background: #5e1919;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
}

.newsletter-image img {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.newsletter-image img:hover {
    transform: scale(1.05);
}

.subscription-message {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.subscription-message.success {
    color: #28a745;
}

.subscription-message.error {
    color: #dc3545;
}

/* Enhanced Button Styling */
.btn-enhanced-about {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(94, 25, 25, 0.3);
}

.btn-enhanced-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-enhanced-about:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.4);
}

.btn-enhanced-about i {
    transition: transform 0.3s ease;
}

.btn-enhanced-about:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Enhanced About Section */
@media (max-width: 1200px) {
    .about-content-enhanced h1 {
        font-size: 2.2rem;
    }

    .feature-item-enhanced {
        padding: 1.2rem;
    }
}

@media (max-width: 992px) {
    .about-images-container {
        margin-bottom: 3rem;
    }

    .main-image {
        height: 220px;
    }

    .secondary-image {
        height: 220px;
    }

    .about-content-enhanced {
        height: auto !important;
    }

    .content-middle {
        flex: none;
    }

    .about-content-enhanced h1 {
        font-size: 2rem;
    }

    .feature-item-enhanced {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .features-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .statistics-counters-section .row {
        justify-content: center;
    }

    .statistics-counters-section .col-lg-3 {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-images-container {
        margin-bottom: 2rem;
        flex-direction: column;
        justify-content: flex-start;
    }

    .main-image {
        height: 180px;
        margin-bottom: 1rem !important;
    }

    .secondary-image {
        height: 180px;
    }

    .about-content-enhanced {
        height: auto !important;
    }

    .content-top,
    .content-middle,
    .content-bottom {
        flex: none;
    }

    .experience-badge-enhanced {
        padding: 1rem 1.5rem !important;
        margin-top: -2rem !important;
        margin-right: -2rem !important;
    }

    .experience-badge-enhanced h1 {
        font-size: 2rem !important;
    }

    .experience-badge-enhanced h4 {
        font-size: 1rem !important;
    }

    .about-content-enhanced h1 {
        font-size: 1.8rem;
    }

    .statistics-counters-section {
        padding: 1.5rem 0;
    }

    .counter-card {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }

    .counter-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .counter-icon i {
        font-size: 1.5rem;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .counter-label {
        font-size: 1rem;
    }

    .counter-description {
        font-size: 0.8rem;
    }

    .newsletter-title {
        font-size: 2rem;
        text-align: center;
    }

    .newsletter-subtitle {
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .newsletter-form .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .newsletter-btn {
        width: 100%;
        min-width: auto;
    }

    .newsletter-image {
        text-align: center !important;
        margin-top: 2rem;
    }

    .newsletter-image img {
        max-width: 250px;
    }

    .btn-enhanced-about {
        width: 100%;
        justify-content: center;
    }

    .overlay-icon {
        width: 60px;
        height: 60px;
    }

    .overlay-icon i {
        font-size: 1.5rem !important;
    }

    .overlay-content h5 {
        font-size: 1.1rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 160px;
    }

    .secondary-image {
        height: 140px;
    }

    .about-content-enhanced h1 {
        font-size: 1.6rem;
    }

    .about-content-enhanced p {
        font-size: 1rem;
    }

    .statistics-counters-section {
        padding: 1rem 0;
    }

    .statistics-counters-section .col-sm-6 {
        margin-bottom: 1rem;
    }

    .counter-card {
        padding: 1.5rem 0.8rem;
    }

    .counter-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .counter-icon i {
        font-size: 1.2rem;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .counter-label {
        font-size: 0.9rem;
    }

    .counter-description {
        font-size: 0.75rem;
    }

    .newsletter-content {
        padding: 1rem 0;
    }

    .newsletter-title {
        font-size: 1.8rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }

    .newsletter-input,
    .newsletter-btn {
        height: 50px;
    }

    .newsletter-btn {
        padding: 0 20px;
        font-size: 0.9rem;
    }

    .newsletter-image img {
        max-width: 200px;
    }

    .experience-badge-enhanced {
        padding: 0.8rem 1.2rem !important;
    }

    .experience-badge-enhanced h1 {
        font-size: 1.5rem !important;
    }

    .experience-badge-enhanced h4 {
        font-size: 0.9rem !important;
    }
}

/* LARSA Footer Styles */
.larsa-footer {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-content {
    color: #ccc;
}

.footer-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.footer-social h6 {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
}

.footer-map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.footer-map {
    position: relative;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 15px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(94, 25, 25, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-overlay-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.map-overlay-content i {
    font-size: 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

.copyright .text-primary {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
}

.copyright .text-primary:hover {
    color: #7a2020 !important;
}

.credit-links {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
}

.credit-links a {
    color: var(--primary) !important;
    text-decoration: none;
}

.credit-links a:hover {
    color: #7a2020 !important;
}

/* Footer Responsive Design */
@media (max-width: 991px) {
    .footer-main {
        padding: 60px 0 30px;
    }

    .footer-title {
        font-size: 1.8rem;
        text-align: center !important;
    }

    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-content p {
        text-align: center !important;
        font-size: 0.95rem;
    }

    .footer-social {
        text-align: center !important;
    }

    .social-icons {
        justify-content: center !important;
    }

    .footer-map iframe {
        height: 200px;
    }

    .map-overlay {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }

    .map-overlay-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 50px 0 20px;
    }

    .footer-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        text-align: center !important;
    }

    .footer-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: center !important;
    }

    .social-icons {
        gap: 10px;
        justify-content: center !important;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-map iframe {
        height: 180px;
    }

    .map-overlay {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }

    .map-overlay-content {
        font-size: 0.75rem;
        gap: 5px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .copyright p {
        font-size: 0.85rem;
        text-align: center !important;
    }

    .credit-links {
        font-size: 0.75rem;
        margin-top: 8px;
        text-align: center !important;
    }
}

/* ========== LOGO AND NAVBAR FIXES ========== */

/* Logo fixes for all screen sizes */
.navbar-brand img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    image-rendering: pixelated !important;
    filter: contrast(1.2) brightness(1.1) !important;
}

/* Navbar brand container */
.navbar-brand {
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 250px !important;
}

.navbar-brand h2 {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 50px !important;
        width: auto !important;
    }

    .navbar-brand h2 {
        font-size: 1.5rem !important;
    }

    .navbar-brand {
        max-width: 180px !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 45px !important;
        width: auto !important;
    }

    .navbar-brand h2 {
        font-size: 1.3rem !important;
    }

    .navbar-brand {
        max-width: 160px !important;
        padding: 0.3rem 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px !important;
        width: auto !important;
    }

    .navbar-brand h2 {
        font-size: 1.2rem !important;
    }

    .navbar-brand {
        max-width: 140px !important;
        padding: 0.2rem 0.5rem !important;
    }
}

/* Logo quality improvements */
.navbar-brand img {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: nearest-neighbor !important;
}

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }


/* Enhanced Icon Consistency */
.fa, .fas, .fab, .far, .fal {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900;
}

.fab {
    font-weight: 400 !important;
}

.far {
    font-weight: 400 !important;
}

/* Icon Size Consistency */
.fa-2x {
    font-size: 2em !important;
}

.fa-3x {
    font-size: 3em !important;
}

/* Mobile Icon Adjustments */
@media (max-width: 768px) {
    .fa-3x {
        font-size: 2.5em !important;
    }

    .fa-2x {
        font-size: 1.8em !important;
    }
}

@media (max-width: 576px) {
    .fa-3x {
        font-size: 2em !important;
    }

    .fa-2x {
        font-size: 1.5em !important;
    }
}

/* Touch Device Enhancements */
.touch-device .feature-card.touch-active,
.touch-device .counter-card.touch-active,
.touch-device .team-member-pro.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Performance Optimizations */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Prevent Layout Shift */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.social-icon:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .counter-card,
    .team-member-pro {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .social-icons {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Responsive Design for Enhanced About Section */
@media (max-width: 1200px) {
    .about-content {
        padding-left: 1rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-image-container {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }

    .about-image-container {
        height: 450px;
        margin-bottom: 2rem;
    }

    .floating-element {
        display: none;
    }

    .secondary-image-wrapper {
        left: 15%;
        width: 45%;
    }
}

/* Responsive Design for Health & Safety - Clean Version */
@media (max-width: 1200px) {
    .safety-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .title-highlight {
        font-size: 1.4rem;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-image-container {
        height: 350px;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
        top: -15px;
        right: -15px;
    }

    .badge-number {
        font-size: 1.8rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .secondary-image-wrapper {
        left: 10%;
        width: 50%;
        height: 30%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-enhanced {
        justify-content: center;
        width: 100%;
    }

    .safety-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .safety-overview-card,
    .safety-policy-statement,
    .safety-objective-card,
    .organization-card,
    .equipment-card,
    .procedure-card {
        padding: 1.5rem;
    }

    .policy-header {
        flex-direction: column;
        text-align: center;
    }

    .policy-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .equipment-image {
        height: 150px;
    }

    .org-features,
    .equipment-specs {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .safety-icon,
    .org-icon,
    .procedure-icon {
        width: 60px;
        height: 60px;
    }

    .safety-icon i,
    .org-icon i,
    .procedure-icon i {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 1.1rem;
    }

    .objective-icon {
        width: 60px;
        height: 60px;
    }

    .objective-icon i {
        font-size: 1.3rem;
    }

    .equipment-image {
        height: 120px;
    }

    .safety-overview-card,
    .safety-policy-statement,
    .safety-objective-card,
    .organization-card,
    .equipment-card,
    .procedure-card {
        padding: 1rem;
    }
}

.safety-certification-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.safety-certification-badge .badge-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
}

.safety-certification-badge .badge-icon i {
    font-size: 1.8rem;
    color: white;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.badge-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.safety-title-main {
    font-weight: 800;
    letter-spacing: -1px;
}

.safety-title-sub {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.safety-title-sub::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    border-radius: 2px;
}

/* Safety Metrics Grid */
.safety-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.metric-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-icon i {
    font-size: 1.8rem;
    color: white;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Section Styling */
.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
}

.section-badge i {
    margin-right: 10px;
    font-size: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    line-height: 1.6;
}

/* Policy Statement Card */
.policy-statement-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(94, 25, 25, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.policy-statement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
}

.policy-statement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(94, 25, 25, 0.15);
}

.statement-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.statement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.3);
    position: relative;
}

.statement-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.statement-icon i {
    color: white;
    font-size: 2.2rem;
}

.statement-content h3 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.statement-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.policy-declaration h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

.policy-declaration h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 2px;
}

.declaration-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(94, 25, 25, 0.02);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.declaration-item:hover {
    background: rgba(94, 25, 25, 0.05);
    transform: translateX(5px);
}

.item-number {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
}

.item-content p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.item-content strong {
    color: var(--primary);
    font-weight: 700;
}

/* Commitment Grid */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(94, 25, 25, 0.1);
    transition: all 0.3s ease;
}

.commitment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.1);
    border-color: var(--primary);
}

.commitment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
}

.commitment-icon i {
    color: white;
    font-size: 1.2rem;
}

.commitment-text h6 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.commitment-text p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Objectives Section */
.objectives-section {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(94, 25, 25, 0.1);
    position: relative;
    overflow: hidden;
}

.objectives-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7a2020, var(--primary));
}

.objectives-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.objectives-header h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.objectives-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.02), rgba(255, 107, 53, 0.02));
    border: 2px solid rgba(94, 25, 25, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(255, 107, 53, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.objective-card:hover::before {
    opacity: 1;
}

.objective-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(94, 25, 25, 0.15);
}

.objective-number {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
    z-index: 2;
}

.objective-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.objective-card:hover .objective-icon {
    transform: scale(1.1) rotate(10deg);
}

.objective-icon i {
    color: white;
    font-size: 1.8rem;
}

.objective-content h6 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.objective-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* Safety Organization Structure */
.safety-organization-structure {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(94, 25, 25, 0.1);
    position: relative;
    overflow: hidden;
}

.safety-organization-structure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7a2020, var(--primary));
}

.organization-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.organization-header h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.organization-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.organization-hierarchy {
    position: relative;
}

.hierarchy-level {
    margin-bottom: 2rem;
}

.position-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.position-card.executive {
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
}

.position-card.operational {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(255, 107, 53, 0.05));
}

.position-card.tactical {
    border-color: #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(3, 169, 244, 0.05));
}

.position-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.position-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.executive .position-icon {
    background: linear-gradient(135deg, var(--primary), #7a2020);
}

.operational .position-icon {
    background: linear-gradient(135deg, var(--primary), #7a2020);
}

.tactical .position-icon {
    background: linear-gradient(135deg, #2196F3, #03a9f4);
}

.position-icon i {
    color: white;
    font-size: 1.5rem;
}

.position-badge {
    background: rgba(0,0,0,0.1);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-content h5 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.position-code {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.responsibilities h6 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.responsibilities ul {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.responsibilities li::before {
    content: '▶';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.qualifications {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qual-badge {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.1), rgba(255, 107, 53, 0.1));
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: 1px solid rgba(94, 25, 25, 0.2);
}

.qual-badge i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Hierarchy Connectors */
.hierarchy-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary), #7a2020);
    border-radius: 1px;
}

.connector-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Subcontractor Managers Section */
.subcontractor-managers-section {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(3, 169, 244, 0.05));
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.subcontractor-managers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #03a9f4);
}

.managers-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
}

.header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2196F3, #03a9f4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.3);
    position: relative;
}

.header-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2196F3, #03a9f4);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.header-icon i {
    color: white;
    font-size: 2rem;
}

.header-content h5 {
    color: #2196F3;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.header-content .position-code {
    background: linear-gradient(135deg, #2196F3, #03a9f4);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.header-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.manager-card {
    background: white;
    border: 2px solid rgba(33, 150, 243, 0.1);
    border-radius: 18px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.manager-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #03a9f4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.manager-card:hover::before {
    transform: scaleX(1);
}

.manager-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #2196F3;
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
}

.manager-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2196F3, #03a9f4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.manager-card:hover .manager-icon {
    transform: scale(1.1) rotate(5deg);
}

.manager-icon i {
    color: white;
    font-size: 1.3rem;
}

.manager-content h6 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.specialization {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-tag {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(3, 169, 244, 0.1));
    color: #2196F3;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.manager-card:hover .spec-tag {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(3, 169, 244, 0.15));
    border-color: #2196F3;
}

/* Collective Responsibilities */
.collective-responsibilities {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.collective-responsibilities h6 {
    color: #2196F3;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.responsibility-item {
    background: white;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.responsibility-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
}

.resp-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2196F3, #03a9f4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.resp-icon i {
    color: white;
    font-size: 1.1rem;
}

.resp-content h6 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.resp-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Quality Assurance Note */
.quality-assurance-note {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
}

.qa-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.qa-icon i {
    color: white;
    font-size: 1.5rem;
}

.qa-content h6 {
    color: #d4af37;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.qa-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* PPE Framework */
.ppe-framework {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(94, 25, 25, 0.1);
    position: relative;
    overflow: hidden;
}

.ppe-framework::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
}

.ppe-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.ppe-header h4 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ppe-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* General Requirements */
.ppe-general-requirements {
    background: linear-gradient(135deg, rgba(94, 25, 25, 0.05), rgba(255, 107, 53, 0.05));
    border: 2px solid rgba(94, 25, 25, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.requirement-header {
    display: flex;
    align-items: flex-start;
}

.req-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(94, 25, 25, 0.3);
}

.req-icon i {
    color: white;
    font-size: 1.5rem;
}

.req-content h5 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.req-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* PPE Categories Grid */
.ppe-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ppe-category {
    background: white;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ppe-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7a2020);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ppe-category:hover::before {
    transform: scaleX(1);
}

.ppe-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.category-icon.head-protection {
    background: linear-gradient(135deg, #7a2020, #7a2020);
}

.category-icon.foot-protection {
    background: linear-gradient(135deg, #8E44AD, #9B59B6);
}

.category-icon.hand-protection {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.category-icon.visibility-protection {
    background: linear-gradient(135deg, #7a2020, var(--primary));
}

.category-icon i {
    color: white;
    font-size: 1.3rem;
}

.category-info h6 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.category-code {
    background: rgba(94, 25, 25, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.equipment-showcase {
    margin-bottom: 1.5rem;
}

.equipment-image {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ppe-category:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(94, 25, 25, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppe-category:hover .equipment-overlay {
    opacity: 1;
}

.equipment-overlay i {
    color: white;
    font-size: 2rem;
}

.equipment-details h6 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.equipment-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.equipment-specs li {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.equipment-specs li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.equipment-specs strong {
    color: var(--primary);
    font-weight: 700;
}

.compliance-badge {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    color: #27AE60;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.compliance-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.safety-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 235, 59, 0.1));
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.safety-note i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.application-tags,
.personnel-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.app-tag,
.personnel-tag {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(3, 169, 244, 0.1));
    color: #2196F3;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Specialized Protection */
.specialized-protection {
    background: rgba(0,0,0,0.02);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.specialized-protection h5 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.specialized-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.specialized-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(94, 25, 25, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.specialized-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(94, 25, 25, 0.1);
    border-color: var(--primary);
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
}

.spec-icon i {
    color: white;
    font-size: 1.2rem;
}

.spec-content h6 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.spec-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Equipment Cards */
.equipment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.equipment-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(94, 25, 25, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.equipment-overlay i {
    color: white;
    font-size: 2rem;
}

.equipment-content {
    padding: 1.5rem;
}

.equipment-content h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.equipment-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Procedure Cards */
.procedure-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.procedure-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.procedure-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(94, 25, 25, 0.1);
}

.procedure-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.3);
}

.procedure-icon i {
    color: white;
    font-size: 1.3rem;
}

.procedure-header h4 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
}

.procedure-item {
    margin-bottom: 1.5rem;
}

.procedure-item h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.procedure-item ul {
    padding-left: 1rem;
}

.procedure-item li {
    margin-bottom: 0.5rem;
    color: var(--dark);
    position: relative;
}

.procedure-item li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Emergency Cards */
.emergency-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.emergency-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(94, 25, 25, 0.2);
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7a2020, var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.emergency-icon i {
    color: white;
    font-size: 2rem;
}

.emergency-card h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.emergency-numbers {
    margin-top: 1.5rem;
}

.number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(94, 25, 25, 0.05);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary);
}

.number-item .service {
    font-weight: 600;
    color: var(--dark);
}

.number-item .number {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.emergency-list {
    text-align: left;
    padding-left: 1rem;
    margin-top: 1rem;
}

.emergency-list li {
    margin-bottom: 0.5rem;
    color: var(--dark);
    position: relative;
}

.emergency-list li::before {
    content: "⚡";
    color: var(--primary);
    position: absolute;
    left: -1rem;
}

/* Responsive Design for Health & Safety */
@media (max-width: 1200px) {
    .safety-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ppe-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .managers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .responsibilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .safety-certification-badge {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .safety-certification-badge .badge-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .safety-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .position-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .statement-header {
        flex-direction: column;
        text-align: center;
    }

    .statement-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .declaration-item {
        flex-direction: column;
        text-align: center;
    }

    .item-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .ppe-categories-grid {
        grid-template-columns: 1fr;
    }

    .specialized-grid {
        grid-template-columns: 1fr;
    }

    .specialized-item {
        flex-direction: column;
        text-align: center;
    }

    .spec-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .requirement-header {
        flex-direction: column;
        text-align: center;
    }

    .req-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .quality-assurance-note {
        flex-direction: column;
        text-align: center;
    }

    .qa-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .safety-certification-badge {
        padding: 15px;
    }

    .badge-title {
        font-size: 1rem;
    }

    .badge-subtitle {
        font-size: 0.8rem;
    }

    .safety-title-main {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .policy-statement-card,
    .safety-organization-structure,
    .ppe-framework {
        padding: 2rem;
    }

    .position-card {
        padding: 1.5rem;
    }

    .ppe-category {
        padding: 1.5rem;
    }

    .equipment-image {
        height: 150px;
    }

    .commitment-item {
        padding: 1rem;
    }

    .objective-card {
        padding: 1.5rem;
    }

    .specialized-protection {
        padding: 2rem;
    }

    .application-tags,
    .personnel-types {
        justify-content: center;
    }

    .responsibilities-grid {
        grid-template-columns: 1fr;
    }

    .managers-header {
        flex-direction: column;
        text-align: center;
    }

    .header-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .responsibility-item {
        flex-direction: column;
        text-align: center;
    }

    .resp-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-icon {
        width: 60px;
        height: 60px;
    }

    .metric-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .safety-title-main {
        font-size: 2rem;
    }

    .section-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .policy-statement-card,
    .safety-organization-structure,
    .ppe-framework {
        padding: 1.5rem;
    }

    .position-card,
    .ppe-category {
        padding: 1rem;
    }

    .equipment-image {
        height: 120px;
    }

    .category-icon,
    .position-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon i,
    .position-icon i {
        font-size: 1rem;
    }

    .objective-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .objective-icon {
        width: 60px;
        height: 60px;
    }

    .objective-icon i {
        font-size: 1.5rem;
    }
}

/* Partnership Statistics */
.partnership-stats-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

/* Partnership stats grid background removed */

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.stats-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stats-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(94, 25, 25, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(94, 25, 25, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7a2020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(94, 25, 25, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Partnership Projects */
@media (max-width: 1200px) {
    .partnership-main-title {
        font-size: 3rem;
    }

    .partnership-project-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .partnership-main-title {
        font-size: 2.5rem;
    }

    .project-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .project-content {
        padding: 0 1.5rem 1.5rem;
    }

    .partnership-stats-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .partnership-main-title {
        font-size: 2rem;
    }

    .title-word-partnership {
        display: block;
        margin: 0.2rem 0;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .project-number {
        position: static;
        margin-top: 1rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .detail-value {
        max-width: 100%;
        text-align: center;
    }

    .stats-header h3 {
        font-size: 2rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .partnership-main-title {
        font-size: 1.8rem;
    }

    .subtitle-text-partnership {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .project-icon {
        width: 60px;
        height: 60px;
    }

    .project-icon i {
        font-size: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .partnership-stats-container {
        padding: 1.5rem 1rem;
    }

    .stats-header h3 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Animation Enhancements */
@keyframes slideInTitle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 40px;
    }
    to {
        width: 80px;
    }
}

@keyframes rotateDiamond {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/*** Partners Read More Functionality ***/
.partner-item {
    height: 400px; /* Fixed height for all cards */
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.partner-item.expanded {
    height: auto; /* Allow expansion when Read More is clicked */
    min-height: 600px; /* Minimum height when expanded */
}

.partner-logo-container {
    flex-shrink: 0; /* Don't shrink the logo area */
}

.partner-projects {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 15px;
    justify-content: space-between;
}

.projects-list {
    flex: 1;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.partner-item.expanded .projects-list {
    overflow: visible;
    flex: none; /* Allow natural height when expanded */
}

.project-hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.project-visible {
    display: list-item;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.projects-expanded .project-hidden {
    display: list-item;
    opacity: 1;
    transform: translateY(0);
}

.read-more-btn-partner {
    background: linear-gradient(135deg, var(--primary), #7a2020);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(94, 25, 25, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Don't shrink the button */
}

.read-more-btn-partner::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: left 0.5s ease;
}

.read-more-btn-partner:hover::before {
    left: 100%;
}

.read-more-btn-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 25, 25, 0.4);
}

.read-more-btn-partner .btn-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Button text will be handled by JavaScript */

/* Projects title styling */
.projects-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Projects list styling */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    padding: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.projects-list li:last-child {
    border-bottom: none;
}

.projects-list li i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Animation for project items */
@keyframes slideInProject {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
        padding: 5px 0;
    }
}

.projects-expanded .project-hidden {
    animation: slideInProject 0.4s ease forwards;
}

/* Responsive adjustments for partner items and read more button */
@media (max-width: 1200px) {
    .partner-item {
        height: 420px;
    }

    .partner-item.expanded {
        min-height: 650px;
    }
}

@media (max-width: 992px) {
    .partner-item {
        height: 450px;
    }

    .partner-item.expanded {
        min-height: 700px;
    }
}

@media (max-width: 768px) {
    .partner-item {
        height: 380px;
    }

    .partner-item.expanded {
        min-height: 600px;
    }

    .read-more-btn-partner {
        padding: 6px 16px;
        font-size: 0.8rem;
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .partner-item {
        height: 360px;
    }

    .partner-item.expanded {
        min-height: 550px;
    }

    .read-more-btn-partner {
        padding: 5px 14px;
        font-size: 0.75rem;
        margin-top: 10px;
    }
}

/* Enhanced visual feedback for expansion */
.partner-item.expanded {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(94, 25, 25, 0.15);
    z-index: 10;
    position: relative;
}

.partner-item.expanded .partner-logo-container {
    transform: scale(0.95);
}

/* Smooth height transitions */
.partner-item,
.partner-projects,
.projects-list {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FINAL GET IN TOUCH FIXES ========== */

/* Ensure red border appears on hover for all contact cards */
.contact__card {
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.contact__card:hover {
    border: 2px solid var(--primary) !important;
    border-top: 4px solid var(--primary) !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(94, 25, 25, 0.2) !important;
}

/* Force center alignment for all GET IN TOUCH content */
.htc__contact__address .container,
.htc__contact__address .row,
.htc__contact__address .col-xs-12,
.contact__section__title,
.contact__section__title h2,
.contact__section__title p,
.htc__contact__wrap,
.contact__cards__container,
.contact__card,
.contact__card__inner,
.contact__icon,
.contact__details,
.contact__details h3,
.contact__details p,
.contact__details a {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure contact cards are properly centered in their container */
.contact__cards__container {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}

/* Individual contact card styling */
.contact__card {
    flex: 1 !important;
    min-width: 280px !important;
    max-width: 350px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Contact card inner content */
.contact__card__inner {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contact icon centering */
.contact__icon {
    margin: 0 auto 1.5rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contact details centering */
.contact__details {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact__details h3,
.contact__details p {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

