/**
 * Services Grid Styles
 * Styles for the Services Custom Post Type display
 */

/* Services Grid Container */
.services-grid {
    display: grid;
    gap: 30px 63px;
    max-width: 1279px;
    margin: 40px auto;
}
.service-card-content p {
    padding-left:30px;
}
/* 2 Column Grid (Default) */
.services-grid.services-grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Column Grid */
.services-grid.services-grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 Column Grid */
.services-grid.services-grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Service Card */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

/* Service Card Image Container */
.service-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

/* Service Card Placeholder */
.service-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-placeholder::before {
    content: "🔧";
    font-size: 48px;
    opacity: 0.5;
}

/* Service Card Overlay */
.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    padding: 20px;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* Service Card Title Group */
.service-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
	padding:10px;
}

/* Service Card Icon in Overlay */
.service-card-icon {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.service-card-icon .service-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Service Card Content */
.service-card-content {
    padding: 25px;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
    line-height: 1.3;
}

.service-card-description {
    color: #000;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.service-card-description p {
    color: #000;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.service-card-description p {
    margin: 0 0 10px 0;
}

.service-card-description p:last-child {
    margin-bottom: 0;
}

/* Custom List Bullets */
.service-card-description ul {
    list-style: none;
    padding-left: 0;
}

.service-card-description ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
}

.service-card-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url('http://express-lock-key.local/wp-content/uploads/2025/12/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* No Services Found Message */
.no-services-found {
    text-align: center;
    color: #000000;
    font-size: 18px;
    margin: 40px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services-grid.services-grid-4-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid.services-grid-2-cols,
    .services-grid.services-grid-3-cols,
    .services-grid.services-grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card-image {
        height: 200px;
    }
    
    .service-card-content {
        padding: 20px;
    }
    
    .service-card-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .services-grid.services-grid-2-cols,
    .services-grid.services-grid-3-cols,
    .services-grid.services-grid-4-cols {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card-image {
        height: 220px;
    }
    
    .service-card-overlay {
        padding: 15px;
    }
    
    .service-card-title-group {
        gap: 10px;
    }
    
    .service-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-card-icon .service-icon {
        width: 22px;
        height: 22px;
    }
    
    .service-card-content {
        padding: 20px;
    }
    
    .service-card-title {
        font-size: 18px;
    }
    
    .service-card-description {
        font-size: 14px;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 60px 0;
}

.gallery-grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid-title {
    font-size: 40px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.gallery-grid-content {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
}

/* Gallery Grid Container - 5x3 Layout */
.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    background: #f8f9fa;
}

.gallery-grid-image {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid-item:hover .gallery-grid-image img {
    transform: scale(1.05);
}

.gallery-grid-button {
    text-align: center;
    margin-top: 30px;
}

.gallery-grid-button .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.gallery-grid.columns-5 {
    margin-bottom: 50px;
}
.gallery-grid-section a.btn.btn-primary {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    font-size: 24px;
}
.gallery-grid-button .btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Gallery Grid Responsive */
@media screen and (max-width: 1200px) {
    .gallery-grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .gallery-grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 600px) {
    .gallery-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
    }
    
    .gallery-grid-title {
        font-size: 28px;
    }
    
    .gallery-grid-content {
        font-size: 15px;
        margin: 0 auto 20px auto;
    }
}

@media screen and (max-width: 400px) {
    .gallery-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
        gap: 8px;
    }
    
    .gallery-grid-title {
        font-size: 24px;
    }
    
    .gallery-grid-button .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: #000000;
        color: #ecf0f1;
    }
    
    .service-card-title {
        color: #ecf0f1;
    }
    
    .service-card-description {
        color: #bdc3c7;
    }
    
    .service-card-placeholder {
        background: linear-gradient(135deg, #4a5f7a 0%, #3a4f6a 100%);
    }
    
    .no-services-found {
        background: #34495e;
        color: #bdc3c7;
        border-color: #4a5f7a;
    }
    
    .gallery-grid-section {
        background: #1a1a1a;
    }
    
    .gallery-grid-title {
        color: #ecf0f1;
    }
    
    .gallery-grid-content {
        color: #bdc3c7;
    }
    
    .gallery-grid-item {
        background: #000000;
    }
    
    .gallery-grid-button .btn {
        background: #0056b3;
    }
    
    .gallery-grid-button .btn:hover {
        background: #004085;
    }
}
