/* Home Page Specific Styles */

/* Smooth Transitions */
.transition {
    transition: all 0.3s ease;
}

/* Feature Cards Hover Effect */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* School Card Styles */
.school-card {
    transition: all 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.school-image-wrapper img {
    transition: transform 0.5s ease;
}

.school-card:hover .school-image-wrapper img {
    transform: scale(1.15);
}

/* News Card Styles */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.news-image-wrapper img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.15);
}

/* Video Card Styles */
.video-card {
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.video-thumbnail-wrapper img {
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.15);
}

.play-button {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Question Card Styles */
.question-card {
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* Hero Banner Styles */
.hero-banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 768px) {
    .hero-banner-section {
        padding: 50px 0 !important;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 2rem !important;
    }
}

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

/* Responsive Image Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Card Image Aspect Ratio Maintainer */
.school-image-wrapper,
.news-image-wrapper,
.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility Improvements */
.card-title a,
h5 a,
h6 a {
    transition: color 0.3s ease;
}

.card-title a:hover,
h5 a:hover,
h6 a:hover {
    color: #667eea !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Feature Icon Animations */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Stats Row Styling */
.stats-row h3 {
    font-size: 2rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .stats-row {
        gap: 1rem !important;
    }
    
    .stats-row h3 {
        font-size: 1.5rem;
    }
}

/* Newsletter Form Styling */
#newsletter-form input {
    border-radius: 50px 0 0 50px;
}

#newsletter-form button {
    border-radius: 0 50px 50px 0;
}

/* CTA Section Styling */
.bg-light.rounded {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bg-light.rounded:hover {
    border-color: #667eea;
}

/* Print Styles */
@media print {
    .hover-shadow,
    .feature-card,
    .btn {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Skip to Content Link (for screen readers) */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
}

/* Question Cards - Modern Design for Home Page */
.question-card-modern-home {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.question-card-modern-home:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.question-card-votes-home {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    flex-shrink: 0;
}

.vote-score-home {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.question-card-votes-home small {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-card-body-home {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-card-meta-home {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.question-card-meta-home span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.question-card-meta-home i {
    font-size: 12px;
}

.question-card-title-home {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
}

.question-card-title-home a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.question-card-title-home a:hover {
    color: #2563eb;
    text-decoration: none;
}

.question-card-content-home {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.question-tags-home {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.question-tag-home {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.question-tag-home.urgent {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.question-author-row-home {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.question-author-avatar-home {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.question-author-name-home {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.question-author-row-home .btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Responsive adjustments for question cards */
@media (max-width: 768px) {
    .question-card-modern-home {
        flex-direction: column;
        gap: 12px;
    }
    
    .question-card-votes-home {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 0;
    }
    
    .question-author-row-home {
        flex-wrap: wrap;
    }
    
    .question-author-row-home .btn {
        width: 100%;
        margin-top: 8px;
    }
}

