/* engineering-college.css */

/* Image Optimization - Prevent Blurriness */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
}

/* Ensure images maintain quality on different screen densities */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Engineering Colleges Section */
.engineering-colleges-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin-top: 70px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    color: #1a478a;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Colleges Grid */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.college-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.college-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.college-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.college-card:hover .college-image img {
    transform: scale(1.1);
}

.college-info {
    padding: 25px;
}

.college-info h3 {
    font-size: 20px;
    color: #1a478a;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.college-info p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.college-info i {
    color: #2c5aa0;
    width: 16px;
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    font-weight: 600;
    margin-top: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.college-card:hover .view-details {
    color: #1a478a;
    transform: translateX(5px);
}

.view-details i {
    transition: transform 0.3s ease;
}

.college-card:hover .view-details i {
    transform: translateX(3px);
}

/* Back to Main Page Button */
.back-to-main {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-popup a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-popup a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-popup i {
    font-size: 24px;
}

.popup-text {
    font-weight: 600;
    font-size: 14px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .colleges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .college-info {
        padding: 20px;
    }
    
    .college-info h3 {
        font-size: 18px;
    }
    
    .whatsapp-popup {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-popup a {
        padding: 12px 16px;
    }
    
    .popup-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .college-info h3 {
        font-size: 16px;
    }
    
    .college-info p {
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
} 