/* ============================================
   SHARED COMPONENTS - CollegeConsult
   ============================================ */

/* === NAVIGATION HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.dark .header {
    background-color: rgba(16, 25, 34, 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header-logo:hover {
    color: var(--color-primary);
}

.header-nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.header-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    position: relative;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--color-primary);
}

.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}

.mobile-menu-button {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideInFromLeft 0.3s ease-out;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.mobile-menu-link:hover {
    background-color: var(--bg-tertiary);
}

/* === DROPDOWN MENU === */
.dropdown-container {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--color-primary);
}

.dropdown-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* === LOGIN BUTTON ICON === */
.login-button-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: #00B8B9;
    padding: 0.625rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.login-button-icon:hover {
    background-color: #f8f9fa;
    box-shadow: var(--shadow-lg);
    padding: 0.625rem 1.25rem;
}

.login-button-icon .login-text {
    max-width: 0;
    opacity: 0;
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-button-icon:hover .login-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 0.25rem;
}

/* === FOOTER === */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-ghost {
    background-color: rgba(43, 140, 238, 0.1);
    color: var(--color-primary);
}

.btn-ghost:hover {
    background-color: rgba(43, 140, 238, 0.2);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* === CARDS === */
.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background-color: rgba(43, 140, 238, 0.1);
    color: var(--color-primary);
}

.badge-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
}

.badge-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--color-danger);
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 140, 238, 0.1);
}

.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* === LOADING SPINNER === */
.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(43, 140, 238, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === ALERT === */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--color-danger);
    border-left: 4px solid var(--color-danger);
}

/* === MARQUEE === */
.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #00D2D3 0%, #00B8B9 100%);
    color: white;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* === MEGA DROPDOWN === */
.mega-dropdown {
    min-width: 400px;
    padding: 1rem;
}

.dropdown-columns {
    display: flex;
    gap: 2rem;
}

.dropdown-column {
    flex: 1;
}

.dropdown-heading {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.ebook-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.ebook-link:hover {
    opacity: 0.9;
    color: white !important;
}

/* === HERO GRADIENT === */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
}

/* === CTA GRADIENT === */
.cta-gradient {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 25%, #00d2d3 75%, #0099cc 100%);
}

/* === SOCIAL GRADIENT === */
.social-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* === STATS GRADIENT === */
.stats-gradient {
    background: linear-gradient(90deg, #00D2D3 0%, #00B8B9 50%, #0099cc 100%);
}

/* === COLLEGE CAROUSEL === */
.college-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carousel-btn-left {
    left: -24px;
}

.carousel-btn-right {
    right: -24px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* === COLLEGE CARD === */
.college-card {
    flex-shrink: 0;
    width: 220px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.college-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.college-card-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.college-card-body {
    padding: 1rem;
}

.college-card-body h4 {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === SOCIAL BUTTONS === */
.social-btn {
    min-width: 180px;
}

.social-btn-telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.social-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-btn-youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* === SERVICE CARD === */
.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* === STATS SECTION === */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* === REVIEWS CAROUSEL === */
.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

/* === REVIEW CARD === */
.review-card {
    flex-shrink: 0;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* === NEWS CARD === */
.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.news-card-img {
    height: 160px;
}

.news-card-body {
    padding: 1.5rem;
}

.news-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

/* === LOCATION SECTION === */
.location-map {
    border: 1px solid var(--border-light);
}

/* === RESPONSIVE FOOTER === */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}