/* CollegeDekho Main Layout Styles */

/* Variables */
:root {
    --primary-color: #f07c00;
    --primary-hover: #d66e00;
    --secondary-color: #0d2855;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

/* Banner Styles */
.college-banner-section {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: relative;
}

.college-banner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.banner-left {
    flex: 1;
}

.banner-right {
    width: 350px;
    flex-shrink: 0;
}

.banner-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.college-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.banner-action-icons {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.college-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.college-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-badge {
    background: #23a016;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-count a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.college-location-gallery {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.college-location-gallery i {
    margin-right: 5px;
}

.banner-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.banner-cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Navigation Styles */
.college-sticky-nav {
    background: #0d2855;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.college-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.college-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.college-tabs li {
    flex-shrink: 0;
}

.college-tabs li a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.college-tabs li.active a,
.college-tabs li a:hover {
    color: #fff;
    border-bottom-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Layout Grid */
.college-content-wrapper {
    background: #f4f6f8;
    padding: 30px 0;
    min-height: 600px;
}

.college-content-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    max-width: 1200px;
    /* Ensure container width */
    margin: 0 auto;
}

.college-main-content {
    background: transparent;
}

.college-main-content.full-width {
    grid-column: 1 / -1;
}

/* Sidebar */
.college-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-cta-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.sidebar-cta-box.highlight {
    border-top: 4px solid var(--primary-color);
}

.sidebar-cta-box h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #000;
}

.sidebar-cta-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.sidebar-info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-info-box h4 {
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    word-break: break-word;
}

.contact-info-item i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #fff;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #f0f4ff;
}

.full-width {
    width: 100%;
    margin-bottom: 10px;
}

/* Common Content Sections */
.content-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #444;
}

/* Responsive */
@media (max-width: 900px) {
    .college-content-wrapper .container {
        grid-template-columns: 1fr;
    }

    .college-sidebar {
        display: none;
        /* Or move to bottom */
    }

    .college-banner {
        flex-direction: column;
    }

    .banner-right {
        width: 100%;
    }
}