/**
 * Custom Styles CSS
 * FK UNISMA - Option 1 Demo
 *
 * This file contains custom styles that enhance Elementor elements
 */

/* ==========================================================================
   Custom Hero Section
   ========================================================================== */

.custom-hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8f 100%);
}

.custom-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 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.4"%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');
}

.custom-hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.custom-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   Custom Cards & Boxes
   ========================================================================== */

.custom-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.custom-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.custom-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.custom-card-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Custom Buttons
   ========================================================================== */

.custom-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.custom-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.custom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.custom-btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.custom-btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   Stats Counter
   ========================================================================== */

.stats-counter-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 1rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #edf2f7;
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */

.fk-posts-section {
    padding: 4rem 1rem;
}

.fk-posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fk-posts-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 1rem;
}

.fk-posts-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.fk-posts-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fk-posts-cols-1 { grid-template-columns: 1fr; }
.fk-posts-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fk-posts-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fk-posts-cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.fk-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.fk-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.fk-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.fk-post-thumbnail img.fk-post-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.fk-post-card:hover .fk-post-thumbnail img {
    transform: scale(1.05);
}

.fk-post-content {
    padding: 2rem;
}

.fk-post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.fk-post-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fk-post-title a:hover {
    color: #667eea;
}

.fk-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.fk-post-date i {
    margin-right: 0.5rem;
    color: #667eea;
}

.fk-post-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fk-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fk-post-read-more:hover {
    gap: 0.75rem;
    color: #764ba2;
}

.fk-post-read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.fk-post-read-more:hover i {
    transform: translateX(4px);
}

.fk-posts-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

/* Posts Grid - Responsive */
@media (max-width: 768px) {
    .fk-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .fk-post-content {
        padding: 1.5rem;
    }

    .fk-posts-section {
        padding: 3rem 1rem;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .custom-hero-section {
        min-height: 60vh;
    }
    
    .custom-hero-title {
        font-size: 2rem;
    }
    
    .custom-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .custom-card {
        padding: 1.5rem;
    }
    
    .stats-counter-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-padding {
    padding: 5rem 1rem;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
