/* ========================================
   College Kampus Enhanced Styles v2.0
   Careers360-Style Design
   ======================================== */

/* ========================================
   ENHANCED COLLEGE CARDS - Careers360 Style
   ======================================== */

.ck-college-card-enhanced {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.ck-college-card-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.ck-card-header {
    display: flex;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.ck-card-rank {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
}

.ck-card-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.ck-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ck-logo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 36px;
    font-weight: 700;
}

.ck-card-info {
    flex: 1;
}

.ck-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ck-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.ck-card-title a:hover {
    color: #667eea;
}

.ck-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.ck-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.ck-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ck-badge-government {
    background: #dbeafe;
    color: #1e40af;
}

.ck-badge-private {
    background: #fef3c7;
    color: #92400e;
}

.ck-badge-nirf {
    background: #e5e7eb;
    color: #374151;
}

.ck-badge-grade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    padding: 4px 16px;
}

.ck-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ck-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}

.ck-rating-value {
    font-weight: 600;
    color: #374151;
}

.ck-rating-count {
    color: #9ca3af;
    font-size: 14px;
}

.ck-card-body {
    padding: 20px;
}

.ck-card-courses {
    margin-bottom: 15px;
}

.ck-course-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ck-course-row:last-child {
    border-bottom: none;
}

.ck-course-name {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.ck-course-duration {
    color: #6b7280;
    font-size: 14px;
    margin: 0 20px;
}

.ck-course-fees {
    font-weight: 600;
    color: #667eea;
}

.ck-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.ck-stat-item {
    text-align: center;
}

.ck-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}

.ck-stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

.ck-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.ck-action-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ck-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ck-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ck-btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ck-btn-secondary:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
}

.ck-btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.ck-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ========================================
   ADVANCED RANKINGS PAGE - Careers360 Style
   ======================================== */

.ck-rankings-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.ck-rankings-header {
    margin-bottom: 30px;
}

.ck-rankings-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.ck-rankings-subtitle {
    font-size: 16px;
    color: #6b7280;
}

.ck-rankings-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.ck-filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.ck-filter-group {
    flex: 1;
    min-width: 200px;
}

.ck-filter-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.ck-filter-select,
.ck-filter-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.ck-filter-select:focus,
.ck-filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ck-sort-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ck-sort-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.ck-sort-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.ck-sort-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.ck-rankings-count {
    padding: 15px 0;
    color: #6b7280;
    font-size: 14px;
}

.ck-rankings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ck-rankings-table table {
    width: 100%;
    border-collapse: collapse;
}

.ck-rankings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ck-rankings-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.ck-rankings-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.ck-rankings-table tbody tr:hover {
    background: #f9fafb;
}

.ck-rankings-table tbody tr:last-child td {
    border-bottom: none;
}

.ck-table-rank {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    width: 60px;
}

.ck-table-college {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ck-table-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.ck-table-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ck-table-college-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.ck-table-college-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.ck-table-rating {
    text-align: center;
}

.ck-table-score {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.ck-table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ck-table-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #374151;
}

.ck-table-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* ========================================
   NEWS & NOTIFICATIONS SECTION
   ======================================== */

.ck-news-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ck-news-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.ck-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ck-news-item:last-child {
    border-bottom: none;
}

.ck-news-item-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 16px;
}

.ck-news-item-content {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ck-news-item-date {
    font-size: 13px;
    color: #9ca3af;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */

.ck-gallery-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ck-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.ck-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.ck-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ck-gallery-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   Q&A SECTION
   ======================================== */

.ck-qna-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ck-qna-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ck-qna-question {
    padding: 15px 20px;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.ck-qna-question:hover {
    background: #f3f4f6;
}

.ck-qna-toggle {
    font-size: 20px;
    transition: transform 0.2s;
}

.ck-qna-item.active .ck-qna-toggle {
    transform: rotate(180deg);
}

.ck-qna-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.ck-qna-item.active .ck-qna-answer {
    padding: 15px 20px;
    max-height: 500px;
}

.ck-qna-answer p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FACILITIES SECTION
   ======================================== */

.ck-facilities-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ck-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ck-facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.ck-facility-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ck-facility-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 28px;
    color: white;
}

.ck-facility-name {
    font-weight: 600;
    color: #374151;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .ck-card-header {
        flex-direction: column;
    }
    
    .ck-card-rank {
        font-size: 20px;
    }
    
    .ck-card-logo {
        width: 60px;
        height: 60px;
    }
    
    .ck-card-title {
        font-size: 18px;
    }
    
    .ck-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ck-card-footer {
        flex-direction: column;
    }
    
    .ck-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ck-rankings-filters {
        padding: 15px;
    }
    
    .ck-filters-row {
        flex-direction: column;
    }
    
    .ck-filter-group {
        width: 100%;
    }
    
    .ck-sort-tabs {
        flex-wrap: wrap;
    }
    
    .ck-rankings-table {
        overflow-x: auto;
    }
    
    .ck-table-college {
        min-width: 250px;
    }
    
    .ck-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ck-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .ck-rankings-title {
        font-size: 24px;
    }
    
    .ck-card-stats {
        grid-template-columns: 1fr;
    }
    
    .ck-facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.ck-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.ck-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
