/* =============================================
   SCADA Pro BIM - Bootstrap Custom Styles
============================================= */

/* =============================================
   Page Loader
============================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.page-loader img {
    height: 60px;
    animation: loader-pulse 1.4s ease-in-out infinite;
}
.page-loader .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: loader-spin 0.75s linear infinite;
}
@keyframes loader-spin  { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }


/* reCAPTCHA validation feedback — controlled directly via JS style.display */
[data-recaptcha-feedback] {
    display: none;
}


/* Custom Properties */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}

/* Headings Global Boost */
h1, .h1 { font-size: 2.25rem; }
h2, .h2 { font-size: 1.85rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

/* Paragraphs and text */
p {
    font-size: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.15rem;
}

/* Global Responsive Font Sizes for Large Screens */
@media (min-width: 1200px) {
    html {
        font-size: 105%;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 110%;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 115%;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 125%;
    }
}

/* Section Divider */
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 2px;
}

/* Top Bar - Funding */
.top-bar {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

.funding-logo-topbar {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.funding-logo-topbar:hover {
    opacity: 1;
}

.top-bar-text {
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .funding-logo-topbar {
        height: 55px;
    }
}

@media (min-width: 1200px) {
    .funding-logo-topbar {
        height: 65px;
    }
    
    .top-bar-text {
        font-size: 0.85rem;
    }
}

/* Feature Icon Circle */
.feature-icon-circle {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.feature-icon-circle .bi {
    color: white !important;
    font-size: 2rem;
}

/* Feature Cards Hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Feature Card Text Sizes */
.feature-card .card-title {
    font-size: 1.2rem;
}

.feature-card .card-text {
    font-size: 1.05rem;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-from {
    font-size: 1.1rem;
    text-transform: lowercase;
}

/* Language Switcher */
.language-switcher .lang-btn {
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.language-switcher .lang-btn * {
    pointer-events: none;
}

.language-switcher .lang-btn .fi {
    width: 1.4em;
    height: 1em;
    border-radius: 2px;
}

.language-switcher .lang-btn.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Hero Section Background */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Navbar Scrolled State */
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Links Size */
.navbar-nav .nav-link {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Custom Primary Button Override */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-size: 1.05rem;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-size: 1.05rem;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-lg {
    font-size: 1.15rem;
    padding: 0.6rem 1.5rem;
}

/* Text Primary Color Override */
.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

/* Form Styles */
.form-control {
    font-size: 1.05rem;
    padding: 0.6rem 0.9rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Badge Platform Styles */
#platforms-list .badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.05rem;
}

#platforms-list .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About List Styles */
.about-list-minimal li,
#whybim-list li,
#ifc-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
}

.about-list-minimal li i,
#whybim-list li i,
#ifc-list li i {
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

/* Global Bootstrap Icons Size Boost */
.bi {
    font-size: 1.15em;
}

/* Platform badges */
#platforms-list .badge {
    font-size: 1rem;
    padding: 0.6rem 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection Color */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1e293b;
}

/* Honeypot - Hidden from users */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Human Check Checkbox */
.verification-box {
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    padding: 14px 18px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.verification-box:hover {
    border-color: #b3b3b3;
}

.verification-box.success {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8f1 0%, #e8f5e9 100%);
}

.verification-box.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.verification-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    border-radius: 6px;
    margin-right: 16px;
    flex-shrink: 0;
}

.verification-icon-left i {
    font-size: 22px;
    color: white;
}

.verification-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.verification-question {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.verification-input {
    width: 75px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.verification-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.verification-input::placeholder {
    color: #bbb;
}

.verification-box.success .verification-input {
    border-color: #4caf50;
    background: #f1f8f1;
}

.verification-box.success .verification-icon-left {
    background: #4caf50;
}

.verification-box.success .verification-icon-left i::before {
    content: "\F26B";
}

.verification-box.error .verification-icon-left {
    background: #dc3545;
}

#verificationError {
    display: none;
    color: #dc3545;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

#verificationError.show {
    display: block;
}

/* Footer Links */
footer a:hover {
    color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
    
    .language-switcher {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Card Rounded Corners */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Gallery Cards */
.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Contact Info Cards */
.contact-info-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-info-card:hover {
    background-color: #e7f1ff !important;
    border-color: var(--bs-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.contact-info-card:hover i {
    transform: scale(1.1);
}

.contact-info-card i {
    transition: transform 0.3s ease;
}

/* Contact Cards - New Design */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--bs-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card:hover .contact-card-value {
    color: var(--bs-primary);
}

.contact-card-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 0.875rem 1rem;
    }
    
    .contact-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }
    
    .contact-card-value {
        font-size: 0.85rem;
    }
    
    .contact-card-label {
        font-size: 0.7rem;
    }
}

/* Contact Icon Circles - Legacy */
.contact-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.contact-icon-circle:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Contact Info Row */
.contact-info-row {
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #334155;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--bs-primary);
}

.contact-text {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
}

.contact-text-small {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: #64748b;
    white-space: nowrap;
}

.contact-item:hover .contact-text,
.contact-item:hover .contact-text-small {
    color: var(--bs-primary);
}

/* Address styling */
.address-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.address-separator {
    color: var(--bs-primary);
    font-weight: bold;
    opacity: 0.6;
}

.contact-address:hover .address-separator {
    opacity: 1;
}

/* Responsive Contact */
@media (max-width: 576px) {
    .contact-info-row {
        gap: 1.5rem;
    }
    
    .contact-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-text {
        font-size: 0.75rem;
    }
    
    .contact-text-small {
        font-size: 0.65rem;
    }
    
    .address-content {
        gap: 0.25rem;
    }
    
    .address-separator {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .contact-icon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .contact-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .contact-text-small {
        font-size: 0.9rem;
    }
}

/* Contact Info Items */
    transform: scale(1.1);
}

/* Contact Info Items (inline) - fallback */
.contact-info-item {
    display: inline-flex;
    align-items: center;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    color: var(--bs-primary);
    background-color: #f0f7ff;
}

.contact-info-item i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-chip {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem 0.4rem 0.4rem;
    }
    
    .contact-chip-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* Workflow Images */
.workflow-images {
    min-height: 320px;
    padding: 2.5rem !important;
    background: transparent;
    position: relative;
}

.workflow-img-container {
    flex: 1;
    max-width: 42%;
    text-align: center;
    position: relative;
}

.workflow-img-container img:not(.workflow-label-logo) {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
    padding: 8px;
}

.workflow-img-container:hover img:not(.workflow-label-logo) {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--bs-primary);
}

.workflow-label {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.workflow-label-logo {
    display: block;
    margin: 1rem auto 0;
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .workflow-label-logo {
        height: 55px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .workflow-label-logo {
        height: 35px;
        max-width: 140px;
    }
}

.workflow-arrow {
    flex-shrink: 0;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.workflow-arrow i {
    font-size: 2.5rem !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: pulse-arrow 2s ease-in-out infinite;
}

.workflow-arrow-logo {
    height: 28px;
    width: auto;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.8; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}

/* Gallery Card Enhancements */
.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #e9ecef;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.gallery-card .bg-light {
    border-top: 1px solid #e9ecef;
}

@media (min-width: 1200px) {
    .workflow-images {
        min-height: 380px;
        padding: 3rem !important;
    }
    
    .workflow-img-container img {
        max-height: 340px;
    }
    
    .workflow-arrow {
        padding: 0 2.5rem;
    }
    
    .workflow-arrow i {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .workflow-images {
        flex-direction: column !important;
        gap: 0.75rem;
        min-height: auto;
        padding: 1rem !important;
    }
    
    .workflow-img-container {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .workflow-img-container img:not(.workflow-label-logo) {
        max-height: 180px;
        width: auto;
        max-width: 100%;
    }
    
    .workflow-label-logo {
        height: 28px !important;
        max-width: 100px !important;
    }
    
    .workflow-arrow {
        padding: 0.5rem 0;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .workflow-arrow i {
        font-size: 1.8rem !important;
        transform: rotate(90deg);
        animation: pulse-arrow-down 2s ease-in-out infinite;
    }
    
    @keyframes pulse-arrow-down {
        0%, 100% { opacity: 0.8; transform: rotate(90deg) translateX(0); }
        50% { opacity: 1; transform: rotate(90deg) translateX(6px); }
    }
    
    .workflow-arrow-logo {
        display: none !important;
    }
    
    .workflow-arrow::before {
        display: none;
    }
    
    .gallery-card .p-3.bg-light h6 {
        font-size: 0.95rem;
    }
    
    .gallery-card .p-3.bg-light p {
        font-size: 0.8rem !important;
    }
}

/* Larger Logo on bigger screens */
.logo-img {
    transition: height 0.3s ease;
}

/* Header Logos */
.greece20-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.greece20-logo-mobile {
    height: 30px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

@media (min-width: 576px) {
    .greece20-logo-mobile {
        height: 35px;
        max-width: 180px;
    }
}

@media (min-width: 1200px) {
    .logo-img {
        height: 60px !important;
    }
    
    .greece20-logo {
        height: 50px;
    }
    
    .footer-logo {
        height: 70px !important;
    }
}

@media (min-width: 1600px) {
    .logo-img {
        height: 70px !important;
    }
    
    .greece20-logo {
        height: 60px;
    }
    
    .footer-logo {
        height: 80px !important;
    }
    
    .navbar {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Footer Styles */
.footer-nav {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1rem !important;
}

.footer-link {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    display: inline-block !important;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .footer-link {
        font-size: 1rem;
    }
    
    .footer-nav {
        gap: 0.5rem 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .footer-link {
        font-size: 1.15rem;
    }
    
    .footer-nav {
        gap: 0.5rem 2rem !important;
    }
}

.footer-link:hover {
    opacity: 1;
}

.footer-subtitle {
    font-size: 1.05rem;
}

.footer-copyright {
    font-size: 1.05rem;
}

.footer-social a {
    font-size: 1.5rem;
}

.footer-logo {
    height: 65px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.ace-logo {
    height: 65px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

footer .bi {
    transition: color 0.2s ease;
}

footer a:hover .bi {
    color: white !important;
}

/* Footer responsive sizes for larger screens */
@media (min-width: 1200px) {
    .footer-link {
        font-size: 1.4rem;
    }
    
    .footer-subtitle {
        font-size: 1.25rem;
    }
    
    .footer-copyright {
        font-size: 1.25rem;
    }
    
    .footer-social a {
        font-size: 1.8rem;
    }
    
    .footer-logo {
        height: 80px;
    }
    
    .ace-logo {
        height: 80px;
    }
}

@media (min-width: 1600px) {
    .footer-link {
        font-size: 1.5rem;
    }
    
    .footer-subtitle {
        font-size: 1.3rem;
    }
    
    .footer-copyright {
        font-size: 1.3rem;
    }
    
    .footer-social a {
        font-size: 2rem;
    }
    
    .footer-logo {
        height: 90px;
    }
    
    .ace-logo {
        height: 90px;
    }
}

/* Extra large screens (27 inch monitors, 2K+) */
@media (min-width: 1920px) {
    .footer-link {
        font-size: 1.75rem;
    }
    
    .footer-subtitle {
        font-size: 1.5rem;
    }
    
    .footer-copyright {
        font-size: 1.5rem;
    }
    
    .footer-social a {
        font-size: 2.5rem;
    }
    
    .footer-logo {
        height: 110px;
        padding: 12px 18px;
    }
    
    .ace-logo {
        height: 110px;
    }
}

/* 4K and ultra-wide monitors */
@media (min-width: 2560px) {
    .footer-link {
        font-size: 2rem;
    }
    
    .footer-subtitle {
        font-size: 1.75rem;
    }
    
    .footer-copyright {
        font-size: 1.75rem;
    }
    
    .footer-social a {
        font-size: 3rem;
    }
    
    .footer-logo {
        height: 130px;
        padding: 15px 22px;
    }
    
    .ace-logo {
        height: 130px;
    }
}

/* Funding Section Styles */
.funding-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.funding-logo-footer {
    max-height: 80px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
}

.funding-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.funding-program {
    font-weight: 500;
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (min-width: 768px) {
    .funding-logo-footer {
        max-height: 90px;
        max-width: 350px;
    }
    
    .funding-section {
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .funding-logo-footer {
        max-height: 100px;
        max-width: 400px;
    }
}

.funding-text {
    max-width: 400px;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .funding-logo {
        max-height: 50px;
    }
    
    .funding-logo-footer {
        max-height: 35px;
    }
    
    .funding-text {
        text-align: center;
        margin: 0 auto;
    }
}
