/* Homepage styles — extracted from index.php inline <style> */

    .top-margin-desktop {
        margin-top: 20px;
    }

    .mobile-margin {
        margin-left: -30px;
        max-width: 150px;
    }

    @media only screen and (min-width:768px) {
        .top-margin-desktop {
            margin-top: 60px !important;
        }

        .mobile-margin {
            margin-left: -13px;
        }
    }

    @media only screen and (max-width:767px) {
        .top-margin-desktop {
            margin-top: 20px !important;
        }
        
        .mobile-center {
            text-align: center !important;
        }
        
        .mobile-spacing {
            margin-bottom: 30px;
        }
    }

    /* Force single row layout for main content */
    .main-content-row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .main-content-row .col-md-4 {
        flex: 1;
        max-width: 33.333333%;
        padding: 0 15px;
    }
    
    @media only screen and (max-width:991px) {
        .main-content-row {
            flex-wrap: wrap;
        }
        .main-content-row .col-md-4 {
            flex: none;
            max-width: 100%;
            margin-bottom: 30px;
        }
    }



    a:hover {
        text-decoration: none;
    }

    .resource-link {
        text-decoration: none !important;
        color: #333;
        transition: all 0.3s ease;
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 8px;
        position: relative;
    }

    .resource-link.active {
        background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
        background-size: 400% 400%;
        animation: gradientShift 2s ease infinite;
        color: white !important;
    }


    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    /* Progressive image loading styles */
    .image-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        height: 410px;
        display: block;
    }

    .image-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        border-radius: 8px;
    }

    .main-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .publication-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        padding: 20px 15px 15px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        z-index: 3;
    }

    .image-container:hover .publication-actions {
        opacity: 1;
        transform: translateY(0);
    }


    .image-loaded .image-placeholder {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .image-loaded .main-image {
        opacity: 1 !important;
    }

    /* Ensure images show immediately when loaded */
    .progressive-image {
        transition: opacity 0.3s ease;
    }
