/*
Theme Name: CollegeDekho XP
Theme URI: https://collegedekhoup.in/
Description: Pixel-perfect replica of CollegeDekho.com
Author: CollegeDekho UP Team
Version: 2.0.1
License: GNU General Public License v2 or later
Text Domain: collegedekho-xp
*/

/* === EXACT COLLEGEDEKHO.COM COLORS === */
:root {
    /* Brand Colors */
    --cd-orange: #ff5a00;
    --cd-orange-hover: #e55000;
    --cd-orange-light: #ff7a30;
    --cd-navy: #002147;
    --cd-navy-dark: #001a33;
    --cd-navy-light: #003d7a;

    /* Backgrounds */
    --cd-white: #ffffff;
    --cd-bg-light: #f7f7f7;
    --cd-bg-lighter: #fafbfc;

    /* Text Colors */
    --cd-text-dark: #333333;
    --cd-text-muted: #666666;
    --cd-text-light: #999999;

    /* Borders & Shadows */
    --cd-border: #e0e0e0;
    --cd-border-light: #f0f0f0;
    --cd-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --cd-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --cd-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cd-bg-lighter);
    color: var(--cd-text-dark);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--cd-navy);
    margin-bottom: 0.75rem;
}

a {
    color: var(--cd-orange);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--cd-orange-hover);
}

/* === BUTTONS === */
.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-orange {
    background: var(--cd-orange);
    color: white;
}

.btn-orange:hover {
    background: var(--cd-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--cd-shadow-md);
    color: white;
}

.btn-navy {
    background: var(--cd-navy);
    color: white;
}

.btn-navy:hover {
    background: var(--cd-navy-dark);
}

/* === HEADER === */
.site-header {
    z-index: 1030;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--cd-navy);
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 18px !important;
    color: var(--cd-navy) !important;
    position: relative;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--cd-orange) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--cd-orange);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.current-menu-item .nav-link::after {
    transform: scaleX(1);
}

/* === CARDS === */
.card {
    border-radius: 12px;
    border: 1px solid var(--cd-border-light);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cd-shadow-lg);
    border-color: transparent;
}

/* === UTILITY CLASSES === */
.bg-navy {
    background-color: var(--cd-navy) !important;
}

.bg-orange {
    background-color: var(--cd-orange) !important;
}

.text-navy {
    color: var(--cd-navy) !important;
}

.text-orange {
    color: var(--cd-orange) !important;
}

.shadow-soft {
    box-shadow: var(--cd-shadow-md);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* ==================================
   COLLEGE DETAIL PAGE STYLES
   ================================== */

/* College Banner */
.college-detail-container {
    background: white;
    padding-top: 20px;
    margin-bottom: 0;
}

.college-banner {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.college-banner-left {
    flex: 1;
}

.college-banner-right {
    flex: 1;
}

/* Logo and Actions */
.college-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.college-logo {
    width: 80px;
    height: 80px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--cd-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.college-logo img {
    max-width: 100%;
    max-height: 100%;
}

.college-logo-placeholder {
    font-size: 40px;
    color: var(--cd-orange);
}

.college-action-icons {
    display: flex;
    gap: 10px;
}

.college-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cd-border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.college-icon-btn:hover {
    background: var(--cd-orange);
    border-color: var(--cd-orange);
    color: white;
}

/* College Heading */
.college-heading {
    font-size: 28px;
    color: var(--cd-navy);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Review Block */
.college-review-block {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.college-rating-badge {
    background: var(--cd-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
}

.college-review-count a {
    color: var(--cd-text-muted);
    font-size: 14px;
}

/* Description */
.college-description {
    color: var(--cd-text-dark);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

/* Location and Gallery */
.college-location-gallery {
    display: flex;
    gap: 25px;
    align-items: center;
}

.college-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cd-text-muted);
    font-size: 14px;
}

.college-location i {
    color: var(--cd-orange);
}

.college-gallery-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--cd-navy);
    font-weight: 600;
}

.college-gallery-link img {
    width: 40px;
    height: auto;
}

/* Banner Right - Image with Stats */
.college-banner-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--cd-shadow-lg);
}

.college-stats-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    z-index: 10;
}

.stat-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--cd-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 18px;
    color: var(--cd-navy);
    font-weight: 700;
}

.college-banner-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* CTA Buttons */
.college-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--cd-border-light);
}

.college-cta-buttons .btn {
    min-width: 180px;
}

.btn-secondary {
    background: white;
    border: 2px solid var(--cd-orange);
    color: var(--cd-orange);
}

.btn-secondary:hover {
    background: var(--cd-orange);
    color: white;
}

.btn-primary {
    background: var(--cd-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--cd-orange-hover);
}

/* Navigation Tabs */
.college-nav-tabs {
    background: white;
    border-bottom: 2px solid var(--cd-border-light);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.nav-tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-tabs-list::-webkit-scrollbar {
    display: none;
}

.nav-tabs-list li {
    white-space: nowrap;
}

.nav-tabs-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--cd-text-dark);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs-list li a:hover,
.nav-tabs-list li.active a {
    color: var(--cd-orange);
    border-bottom-color: var(--cd-orange);
}

/* Main Content */
.college-content-wrapper {
    background: var(--cd-bg-lighter);
    padding: 40px 0;
}

.college-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--cd-shadow-sm);
}

.college-section h2 {
    color: var(--cd-navy);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cd-border-light);
}

/* Courses Table */
.courses-table-wrapper {
    overflow-x: auto;
}

.college-courses-table {
    width: 100%;
    border-collapse: collapse;
}

.college-courses-table thead {
    background: var(--cd-bg-light);
}

.college-courses-table th,
.college-courses-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--cd-border-light);
}

.college-courses-table th {
    font-weight: 700;
    color: var(--cd-navy);
    font-size: 14px;
    text-transform: uppercase;
}

.college-courses-table td {
    font-size: 14px;
}

.college-courses-table tbody tr:hover {
    background: var(--cd-bg-lighter);
}

/* Common CTA */
.college-common-cta {
    background: linear-gradient(135deg, var(--cd-orange) 0%, var(--cd-orange-hover) 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    color: white;
}

.college-common-cta p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.college-common-cta .btn {
    background: white;
    color: var(--cd-orange);
    font-weight: 700;
}

.college-common-cta .btn:hover {
    background: var(--cd-navy);
    color: white;
}

/* FAQs */
.college-faqs {
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--cd-border-light);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--cd-orange);
    font-weight: 700;
}

.faq-item[open] summary {
    background: var(--cd-bg-light);
    color: var(--cd-orange);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 15px 20px;
    margin: 0;
    background: white;
    color: var(--cd-text-muted);
    line-height: 1.7;
}

/* Contact Info */
.college-contact-info {
    max-width: 600px;
}

.college-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.college-contact-info i {
    color: var(--cd-orange);
    font-size: 18px;
    width: 24px;
}

/* Reviews Placeholder */
.college-reviews-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.college-reviews-placeholder p {
    color: var(--cd-text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Responsive College Detail Page */
@media (max-width: 991.98px) {
    .college-banner {
        flex-direction: column;
    }

    .college-stats-overlay {
        grid-template-columns: 1fr;
    }

    .nav-tabs-list {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767.98px) {
    .college-heading {
        font-size: 22px;
    }

    .college-section {
        padding: 20px;
    }

    .college-section h2 {
        font-size: 20px;
    }

    .college-cta-buttons {
        flex-direction: column;
    }

    .college-cta-buttons .btn {
        width: 100%;
    }

    .stat-value {
        font-size: 16px;
    }

    .college-banner-img {
        height: 200px;
    }
}