/* IT44 Grid Plugin Styles */

.it44-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.it44-grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.it44-grid-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.it44-grid-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.it44-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* Grid layouts */
.it44-grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.it44-grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.it44-grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.it44-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.it44-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.it44-grid-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.it44-grid-image {
    width: 100%;
    background: #f5f5f5;
    text-align: center;
    padding: 20px;
}

.it44-grid-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.it44-grid-icon {
    width: 100%;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3c72fc 0%, #1e3a8a 100%);
    color: #fff;
}

.it44-grid-icon i {
    font-size: 48px;
    opacity: 0.9;
}

.it44-grid-content {
    padding: 25px;
    padding-bottom: 60px;
    position: relative;
    flex: 1;
}

.it44-grid-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.it44-grid-item-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.it44-grid-read-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #3c72fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    bottom: 25px;
    left: 25px;
    transition: color 0.3s ease;
}

.it44-grid-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3c72fc;
    transition: width 0.3s ease;
}

.it44-grid-item:hover .it44-grid-read-more {
    color: #1e3a8a;
}

.it44-grid-item:hover .it44-grid-read-more::after {
    width: 100%;
}

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

@media (max-width: 768px) {
    .it44-grid-container {
        padding: 30px 15px;
    }

    .it44-grid-title {
        font-size: 24px;
    }

    .it44-grid-description {
        font-size: 14px;
    }

    .it44-grid {
        gap: 20px;
    }

    .it44-grid-4-cols,
    .it44-grid-3-cols,
    .it44-grid-2-cols {
        grid-template-columns: 1fr;
    }

    .it44-grid-image {
        padding: 15px;
    }

    .it44-grid-image img {
        max-height: 150px;
    }

    .it44-grid-icon {
        padding: 30px 0;
    }

    .it44-grid-icon i {
        font-size: 36px;
    }

    .it44-grid-content {
        padding: 15px;
        padding-bottom: 50px;
    }

    .it44-grid-item-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .it44-grid-item-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .it44-grid-read-more {
        font-size: 11px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .it44-grid-container {
        padding: 20px 10px;
    }

    .it44-grid-title {
        font-size: 20px;
    }

    .it44-grid-header {
        margin-bottom: 30px;
    }

    .it44-grid {
        gap: 15px;
    }

    .it44-grid-image {
        padding: 10px;
    }

    .it44-grid-image img {
        max-height: 100px;
    }

    .it44-grid-icon {
        padding: 20px 0;
    }

    .it44-grid-icon i {
        font-size: 28px;
    }

    .it44-grid-content {
        padding: 12px;
        padding-bottom: 40px;
    }

    .it44-grid-item-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .it44-grid-item-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .it44-grid-read-more {
        font-size: 10px;
        bottom: 12px;
        left: 12px;
    }
}

/* Dark theme support */
.it44-grid-container.dark-theme {
    background: #1a1a1a;
}

.it44-grid-container.dark-theme .it44-grid-title {
    color: #fff;
}

.it44-grid-container.dark-theme .it44-grid-description {
    color: #ccc;
}

.it44-grid-container.dark-theme .it44-grid-item {
    background: #2a2a2a;
    border: 1px solid #333;
}

.it44-grid-container.dark-theme .it44-grid-item-title {
    color: #fff;
}

.it44-grid-container.dark-theme .it44-grid-item-description {
    color: #aaa;
}

/* Animation for loading */
.it44-grid-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.it44-grid-item:nth-child(1) { animation-delay: 0.1s; }
.it44-grid-item:nth-child(2) { animation-delay: 0.2s; }
.it44-grid-item:nth-child(3) { animation-delay: 0.3s; }
.it44-grid-item:nth-child(4) { animation-delay: 0.4s; }
.it44-grid-item:nth-child(5) { animation-delay: 0.5s; }
.it44-grid-item:nth-child(6) { animation-delay: 0.6s; }
.it44-grid-item:nth-child(7) { animation-delay: 0.7s; }
.it44-grid-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
