.project-card {
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    background: #0056b3 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.project-card:hover h5 {
    color: #ffffff !important;
}
.project-img-placeholder {
    background: #f1f5f9; 
    height: 220px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #94a3b8; 
    font-weight: 600;
    transition: all 0.3s ease;
}
.project-card:hover .project-img-placeholder {
    background: #004085;
    color: #ffffff;
}
.project-card-text {
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    align-items: center;
}
.project-card-text h5 {
    margin: 0; 
    color: #1a252f; 
    font-weight: 600; 
    font-size: 1.1rem; 
    line-height: 1.4; 
    transition: color 0.3s ease;
}
/* Reference List - Hover Effects & Zoom */
.ref-card {
    transition: all 0.3s ease-in-out;
}
.ref-card .ref-img-wrapper {
    overflow: hidden;
    position: relative;
}
.ref-card img {
    transition: transform 0.4s ease-in-out;
}
.ref-card:hover img {
    transform: scale(1.06);
}
.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12) !important;
}
/* 1. FIX ZA ZAGLAVLJE: Prisilno farbanje teksta u belo i uklanjanje šablonskih senki */
.project-references-container .table thead th {
    color: #ffffff !important;
    background-color: #212529 !important;
    font-weight: 700 !important;
}

/* 2. REVOLUCIJA ZA MOBILNI: Pretvaranje glomazne tabele u čiste kartice na ekranima ispod 768px */
@media (max-width: 767.98px) {
    
    /* Sakrij klasično horizontalno zaglavlje jer nema smisla na malom ekranu */
    .project-references-container .table thead {
        display: none !important;
    }
    
    /* Prisili sve elemente tabele da se ponašaju kao blokovi (jedan ispod drugog) */
    .project-references-container .table, 
    .project-references-container .table tbody, 
    .project-references-container .table tr, 
    .project-references-container .table td {
        display: block !important;
        width: 100% !important;
    }
    
    /* Svaki red (projekat) postaje zasebna bela kartica sa razmakom i blagom senkom */
    .project-references-container .table tbody tr {
        background: #ffffff !important;
        border: 1px solid #e3e6f0 !important;
        border-radius: 8px !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.04) !important;
    }
    
    /* Sredimo pojedinačne ćelije unutar te mobilne kartice */
    .project-references-container .table td {
        padding: 6px 5px !important;
        border: none !important;
        text-align: left !important;
    }
    
    /* Prva ćelija (Naziv projekta) dobija vizuelno odvajanje i liniju ispod */
    .project-references-container .table td:nth-child(1) {
        border-bottom: 1px solid #f1f3f9 !important;
        padding-bottom: 12px !important;
        margin-bottom: 10px !important;
    }
    
    /* AUTOMATSKO DODAVANJE PREFIKSA: Pošto smo sakrili zaglavlje, CSS sada sam ispred podataka ispisuje šta je šta */
    .project-references-container .table td:nth-child(2)::before {
        content: "Client: ";
        font-weight: 700;
        color: #495057;
    }
    .project-references-container .table td:nth-child(3)::before {
        content: "Location: ";
        font-weight: 700;
        color: #495057;
    }
    .project-references-container .table td:nth-child(4)::before {
        content: "Year: ";
        font-weight: 700;
        color: #495057;
    }
    
    /* Ispravka poravnanja za godinu (da na mobilnom ide levo, a ne desno) */
    .project-references-container .table td:nth-child(4) {
        text-align: left !important;
    }
}
/* Accreditation Page - Premium Cards */
.cert-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #eaeaea !important;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08) !important;
    border-color: var(--primary, #0056b3) !important;
}
.cert-icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #0056b3;
}
/* Hipra Premium Gallery Grid */
.gallery-container .gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background-color: #f8f9fa;
    height: 240px; /* Fiksna visina za savršenu simetriju */
}

.gallery-container .gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.gallery-container .gallery-box:hover img {
    transform: scale(1.08);
}

/* Plavi sloj sa ikonice preko slike na hover */
.gallery-container .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.85); /* Brendirana plava sa providnošću */
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.gallery-container .gallery-box:hover .gallery-overlay {
    opacity: 1;
}

.gallery-container .gallery-overlay i {
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
}

.gallery-container .gallery-box:hover .gallery-overlay i {
    transform: scale(1);
}

/* About Us Page Custom Styles */
.about-feature-card {
    border: 1px solid #eef2f6 !important;
    transition: all 0.3s ease;
}
.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    border-color: #0056b3 !important;
}
.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.about-icon-circle {
    width: 50px;
    height: 50px;
    background-color: #f0f7ff;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Contact Us Premium Layout */
.contact-icon-box {
    width: 45px;
    height: 45px;
    background-color: #f0f7ff;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-info-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f4f8;
}
.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.contact-form .form-control {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
}
.contact-form .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
/* Prisila dimenzija za logo na SVIM uređajima (bez kvarenja sakrivanja) */
.logo-control img, 
.navbar-brand img {
    height: 48px !important;
    width: auto !important;
}