/* ==================================
   Insight Manufacturing Custom Styles
   Professional Industrial Design
   ================================== */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Slab:wght@600;700;800&display=swap');

:root {
    --primary-color: #d35400;
    --primary-dark: #a04000;
    --primary-light: #e67e22;
    --secondary-color: #2c3e50;
    --secondary-dark: #1a252f;
    --accent-color: #e74c3c;
    --dark-gray: #2c3e50;
    --medium-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Ensure containers don't overflow */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
}

/* Override Bootstrap defaults */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

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

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

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

.btn-link {
    color: var(--primary-color);
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    font-size: 1.3rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 50%, #34495e 100%);
    padding: 120px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/manufacturing.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(211, 84, 0, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(211, 84, 0, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.85) 0%, rgba(44, 62, 80, 0.9) 100%);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5 {
    color: white !important;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

.hero-section p,
.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Certifications Bar */
.certifications-bar {
    background: linear-gradient(to bottom, rgba(236, 240, 241, 0.6), rgba(236, 240, 241, 0.9));
    border-bottom: 2px solid rgba(211, 84, 0, 0.2);
    border-top: 2px solid rgba(211, 84, 0, 0.2);
    padding: 1rem 0;
}

.certifications-bar p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.certifications-bar strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.certifications-bar .badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(211, 84, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-left-width: 6px;
}

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

.feature-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.product-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.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;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 2px solid transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 84, 0, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(211, 84, 0, 0.3);
}

.btn-light {
    background: white;
    color: var(--secondary-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 700;
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    border-top: 4px solid var(--primary-color);
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-light) !important;
    transform: translateX(3px);
    display: inline-block;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    border-bottom: 4px solid var(--primary-color);
}

.about-hero h1,
.about-hero .display-4,
.about-hero p {
    color: white !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-section {
    padding: 60px 0;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Products Page Styles */
.products-hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    border-bottom: 4px solid var(--primary-color);
}

.products-hero h1,
.products-hero .display-4,
.products-hero p {
    color: white !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Make products grid columns equal height */
.row.g-4 > [class*="col-"] {
    display: flex;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-detail {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-detail:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.product-detail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-detail:hover img {
    transform: scale(1.05);
}

.product-detail-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-detail-body h3 {
    margin-bottom: 1rem;
}

.product-detail-body p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.product-detail-body .accordion,
.product-detail-body .bg-light,
.product-detail-body ul {
    margin-bottom: 1rem;
}

.product-detail-body .btn,
.product-detail-body .d-grid {
    margin-top: auto;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    border-bottom: 4px solid var(--primary-color);
}

.contact-hero h1,
.contact-hero .display-4,
.contact-hero p {
    color: white !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Info Cards Grid Container */
.contact-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
    flex-shrink: 0;
}

.contact-info-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info-card p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-info-card a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-form-container:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(211, 84, 0, 0.2);
}

.contact-map-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-map-container:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(211, 84, 0, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(211, 84, 0, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    border-bottom: 4px solid var(--primary-color);
}

.services-hero h1,
.services-hero .display-4,
.services-hero p {
    color: white !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .min-vh-75 {
        min-height: 60vh;
    }

    /* Contact info cards grid - single column on mobile */
    .contact-info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Contact page mobile improvements */
    .contact-info-card {
        min-height: 240px;
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .contact-form-container,
    .contact-map-container {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-form-container h3,
    .contact-map-container h3 {
        font-size: 1.5rem;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Navbar mobile improvements */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: center;
    }

    /* Button sizing on mobile */
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-info-card {
        padding: 1.75rem 1.25rem;
        min-height: 220px;
    }

    .contact-info-card h5 {
        font-size: 1.1rem;
    }

    .contact-info-card a {
        font-size: 1.1rem;
    }

    .contact-info-card .contact-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-form-container,
    .contact-map-container {
        padding: 1.75rem 1.25rem;
    }

    /* Hero adjustments for small screens */
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .lead {
        font-size: 1rem !important;
    }

    /* Improve form spacing on mobile */
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .btn-lg {
        width: 100%;
    }
}

/* Medium tablets and small laptops */
@media (min-width: 769px) and (max-width: 991px) {
    /* Contact info cards grid - 3 columns but tighter spacing */
    .contact-info-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-info-card {
        min-height: 260px;
        padding: 2rem 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .product-detail-body {
        padding: 1.5rem;
    }
}

/* Large tablets */
@media (min-width: 577px) and (max-width: 768px) {
    /* Contact info cards grid - 2 columns on tablets */
    .contact-info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-info-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .container {
        max-width: 720px;
    }

    .row.g-4 {
        row-gap: 1.5rem !important;
    }

    .product-detail img {
        height: 250px;
    }

    .feature-card,
    .service-card {
        padding: 1.75rem;
    }
}

/* Extra wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-section {
        padding: 140px 0;
    }
}

/* Ensure proper column wrapping */
@media (max-width: 991px) {
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Stack contact form and map vertically on tablets */
    .contact-hero + section .row > div {
        margin-bottom: 2rem;
    }

    /* Improve contact cards spacing on tablets */
    .contact-info-card {
        margin-bottom: 1.5rem;
    }

    /* Better text readability on tablets */
    body {
        font-size: 15px;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Tablet landscape improvements */
@media (min-width: 768px) and (max-width: 991px) {
    .contact-info-card {
        min-height: 300px;
    }

    .contact-form-container,
    .contact-map-container {
        padding: 2rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
    color: white;
}

.table-dark {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(211, 84, 0, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(211, 84, 0, 0.08);
    cursor: pointer;
}

.table-bordered {
    border: 2px solid #dee2e6;
}

/* Cards */
.card {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    border-bottom: none;
    font-weight: 700;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--medium-gray);
    font-weight: 600;
}

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

/* Accordion */
.accordion-button {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 84, 0, 0.15);
    border-color: var(--primary-color);
}

/* Alerts */
.alert-info {
    background-color: rgba(211, 84, 0, 0.08);
    border-color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

/* Icons - Override any blue checkmarks or icons */
.bi-check-circle-fill {
    color: var(--primary-color) !important;
}

.text-primary .bi,
i.text-primary {
    color: var(--primary-color) !important;
}

/* Badge overrides */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* List styling */
ul li i.bi-check-circle-fill {
    color: var(--primary-color) !important;
}

/* Process circles / numbered indicators */
.bg-primary.text-white.rounded-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

/* Certification badges on About page */
.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.badge.fs-5 {
    font-weight: 700;
    padding: 0.75rem 1.5rem !important;
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
