/* Modern CDC Portal Styles */
:root {
    --primary-color: #b2060a;
    --bg-color: #ffeddc;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 16px;
    --shadow-light: 0 4px 20px rgba(178, 6, 10, 0.08);
    --shadow-medium: 0 8px 30px rgba(178, 6, 10, 0.12);
    --shadow-strong: 0 12px 40px rgba(178, 6, 10, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section Styles */
.hero-wrapper {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 237, 220, 0.5) 100%);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(178, 6, 10, 0.1);
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #d63a47, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #d63a47);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-icon {
    font-size: 1.1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

.university-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #d63a47);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(178, 6, 10, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
    border-color: rgba(178, 6, 10, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #d63a47);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
    transition: var(--transition);
}

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

.feature-content {
    flex: 1;
    line-height: 1.6;
    color: var(--text-dark);
}

.feature-content strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

.closing-text {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Modern Button Styles */
.cta-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.modern-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover .btn-shine {
    left: 100%;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), #d63a47);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--white);
}

.secondary-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.modern-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Financial Assistance Section */
.assistance-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(178, 6, 10, 0.1);
}

.assistance-header {
    background: linear-gradient(135deg, var(--primary-color), #d63a47);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: relative;
}

.assistance-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.assistance-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.live-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.assistance-container {
    padding: 2rem;
    min-height: 200px;
}

/* Loading Animation */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: var(--text-light);
}

.loading-animation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    font-style: italic;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .university-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .assistance-header {
        padding: 1rem 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .assistance-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .university-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .assistance-title {
        font-size: 1.1rem;
    }
}

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

/* Focus styles for accessibility */
.modern-btn:focus,
.feature-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Features Grid for 10 items */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  cursor: pointer;
}

/* Responsive adjustments for more items */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced feature item hover effects for career-focused features */
.feature-item:nth-child(5) .feature-icon { /* Internship Portal */
    background: linear-gradient(135deg, #0066cc, #004499);
}

.feature-item:nth-child(6) .feature-icon { /* Placement Assistance */
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.feature-item:nth-child(7) .feature-icon { /* Career Counseling */
    background: linear-gradient(135deg, #fd7e14, #e55100);
}

.feature-item:nth-child(8) .feature-icon { /* Alumni Network */
    background: linear-gradient(135deg, #6610f2, #520dc2);
}

.feature-item:nth-child(9) .feature-icon { /* Skill Development */
    background: linear-gradient(135deg, #20c997, #17a085);
}

.feature-item:nth-child(10) .feature-icon { /* Interview Preparation */
    background: linear-gradient(135deg, #e83e8c, #d21975);
}

/* Staggered animation for all 10 items */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }
.feature-item:nth-child(7) { animation-delay: 0.7s; }
.feature-item:nth-child(8) { animation-delay: 0.8s; }
.feature-item:nth-child(9) { animation-delay: 0.9s; }
.feature-item:nth-child(10) { animation-delay: 1.0s; }

/* Optional: Add category headers for better organization */
.features-section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}

.features-section-divider::before,
.features-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.features-section-divider span {
    padding: 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
