/* ==========================================================================
   HEALCARTO MBBS GATEWAY STYLES
   ========================================================================== */

/* Hero Adjustments */
.mbbs-hero { padding-top: 8rem; min-height: 85vh; }
.mbbs-badge { background: rgba(37, 99, 235, 0.15); color: var(--accent); font-size: 0.85rem; padding: 0.4rem 1rem; margin-bottom: 1.5rem; border: 1px solid rgba(37, 99, 235, 0.3); }
.premium-search-wrap { width: 100%; max-width: 650px; margin: 0 auto 2.5rem auto; z-index: 20; position: relative; cursor: text; }
.premium-search { width: 100%; padding: 1.25rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 1.1rem; box-shadow: var(--shadow-lg); display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.premium-search:hover { border-color: var(--primary-light); box-shadow: var(--shadow-glow); }
.search-inner { display: flex; align-items: center; gap: 0.75rem; }
.search-inner i { font-size: 1.5rem; color: var(--text-main); }

/* MBBS Quick Stats */
.mbbs-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.stat-pill { background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); padding: 0.5rem 1.25rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--text-main); box-shadow: var(--shadow-sm); transition: var(--transition-fast); display: flex; align-items: center; gap: 0.4rem; cursor: default; }
.stat-pill i { color: var(--primary); font-size: 1.1rem; }
.stat-pill:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Academic Years Grid */
.years-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.year-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 2.5rem 2rem; display: flex; flex-direction: column; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; text-decoration: none; color: inherit; z-index: 1; }
.year-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 184, 148, 0.03) 100%); z-index: -1; opacity: 0; transition: var(--transition); }
.year-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 184, 148, 0.1); border-color: rgba(0, 184, 148, 0.4); z-index: 10; }
.year-card:hover::before { opacity: 1; }

.year-card-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 1.5rem; }
.year-icon { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; justify-content: center; align-items: center; font-size: 2.25rem; color: var(--primary); background: var(--primary-light); margin-bottom: 1rem; transition: var(--transition); }
.year-card:hover .year-icon { transform: scale(1.1) rotate(-5deg); background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3); }

.year-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); font-family: 'Poppins', sans-serif; margin: 0; }

.year-subjects { list-style: none; padding: 0; margin: 0 0 2rem 0; flex-grow: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.year-subjects li { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.year-subjects li i { color: var(--success); font-size: 1.1rem; }
.year-subjects.columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }

.year-action { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--border); font-weight: 600; font-size: 1rem; color: var(--primary); transition: var(--transition); }
.year-action i { font-size: 1.25rem; transition: transform 0.3s ease; }
.year-card:hover .year-action i { transform: translateX(5px); }

/* Year Specific Colors */
.color-blue { color: #3B82F6; background: rgba(59, 130, 246, 0.1); }
.year-card:hover .color-blue { background: #3B82F6; color: #fff; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.color-blue-text { color: #3B82F6; }

.color-purple { color: #8B5CF6; background: rgba(139, 92, 246, 0.1); }
.year-card:hover .color-purple { background: #8B5CF6; color: #fff; box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3); }
.color-purple-text { color: #8B5CF6; }

.color-red { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.year-card:hover .color-red { background: #EF4444; color: #fff; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }
.color-red-text { color: #EF4444; }

/* Final Year Highlight */
.highlight-year { grid-column: 1 / -1; border-color: rgba(239, 68, 68, 0.3); }
.year-card-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.35rem; }
.highlight-year:hover::before { background: linear-gradient(180deg, transparent 50%, rgba(239, 68, 68, 0.03) 100%); }
.highlight-year:hover { box-shadow: var(--shadow-lg), 0 20px 40px rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); }

/* Competitive Exams Grid */
.exams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.exam-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius-md); display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; }
.exam-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.exam-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--primary); background: var(--primary-light); flex-shrink: 0; }
.exam-icon.flag-icon { font-size: 2rem; background: var(--bg); border: 1px solid var(--border); }
.exam-card h3 { margin: 0; font-size: 1.1rem; flex-grow: 1; }
.exam-arrow { font-size: 1.2rem; color: var(--text-muted); transition: var(--transition); }
.exam-card:hover .exam-arrow { color: var(--primary); transform: translateX(3px); }

/* University Resources Grid */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.resource-card { background: var(--glass-bg); border: 1px solid var(--border); padding: 2rem 1.5rem; border-radius: var(--radius-md); text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: block; }
.resource-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; display: inline-block; transition: var(--transition); }
.resource-card h4 { font-size: 1.05rem; margin: 0; color: var(--text-main); font-weight: 600; }
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.resource-card:hover .resource-icon { transform: scale(1.1); color: var(--primary); }

/* Trending Topics Horizontal Scroll (Reused Netflix Style) */
.trending-medical { padding: 4rem 0; overflow: hidden; }
.row-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.row-header h3 { font-size: 1.5rem; font-weight: 700; }
.scrolling-wrapper { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 2rem; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.scrolling-wrapper::-webkit-scrollbar { display: none; }
.trending-card { min-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; scroll-snap-align: start; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); }
.trending-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.trending-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-main); }
.trending-info h4 { font-size: 1rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.trending-badge { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); background: var(--surface-hover); padding: 0.2rem 0.5rem; border-radius: 4px; }

/* Learning Formats Grid */
.formats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 3rem; }
.format-item { background: var(--surface); border: 1px solid var(--border); padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 0.75rem; transition: var(--transition-fast); cursor: default; box-shadow: var(--shadow-sm); }
.format-item i { font-size: 1.25rem; color: var(--primary); }
.format-item:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-2px); }

/* Bottom CTA */
.bottom-cta { padding: 6rem 0; position: relative; }
.cta-glass-card { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); border: 1px solid var(--border); padding: 4rem 2rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .highlight-year { grid-column: auto; }
}

@media (max-width: 768px) {
    .mbbs-hero { padding-top: 7rem; min-height: auto; padding-bottom: 4rem; }
    .year-subjects.columns-2 { grid-template-columns: 1fr; }
    .formats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
}