/* ========================================
   SEATECH - COMMON CONTENT GRID STYLES
   Shared grid and content section styles
   ======================================== */

/* Content Section Base */
.content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Base */
.content-grid {
    display: grid;
    gap: 30px;
}

.content-grid.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-grid.grid-services {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Content Item Base */
.content-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.content-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.content-item-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.content-item-image.tall {
    height: 220px;
}

.content-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.content-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.content-item-title {
    font-size: 1.4em;
    margin: 0 0 auto 0;
    line-height: 1.3;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.content-item-cta {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

/* Color Variations */
.content-item-title.blue {
    color: #2c3e50;
}

.content-item-title.navy {
    color: #004574;
}

.content-item-cta.blue {
    color: #3498db;
}

.content-item-cta.blue:hover,
.content-item:hover .content-item-cta.blue {
    color: #2980b9;
}

.content-item-cta.navy {
    color: #004574;
}

.content-item-cta.navy:hover,
.content-item:hover .content-item-cta.navy {
    color: #14458d;
}

/* No Content State */
.no-content-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.no-content-state h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.no-content-state p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.no-content-state .back-home-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.no-content-state .back-home-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-section-title {
        font-size: 2rem;
    }
    
    .content-section-description {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .content-item-image {
        height: 180px;
    }
    
    .content-item-image.tall {
        height: 200px;
    }
    
    .content-item-content {
        padding: 20px;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 40px 0;
    }
    
    .content-header {
        margin-bottom: 40px;
    }
    
    .content-section-title {
        font-size: 1.8rem;
    }
    
    .content-section-description {
        font-size: 1rem;
    }
    
    .content-grid {
        gap: 20px;
    }
    
    .content-item-image {
        height: 160px;
    }
    
    .content-item-image.tall {
        height: 180px;
    }
    
    .content-item-content {
        padding: 18px;
        min-height: 80px;
    }
    
    .content-item-title {
        font-size: 1.2em;
    }
}