/* ===================================
   Inner Pages Modern Styles
   Matches homepage design language
   =================================== */

/* ====================
   GLOBAL STYLES
   ==================== */

/* Page Container */
#main {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 500px;
}

/* Breadcrumbs - Modern Style */
.breadcrumb {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 30px;
    border-radius: 0;
}

.breadcrumb-item {
    font-size: 14px;
    color: #7f8c8d;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #bdc3c7;
    content: "›";
    padding: 0 8px;
}

.breadcrumb-item.active {
    color: #2c3e50;
    font-weight: 500;
}

/* Page Headers */
.page-header {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.page-title,
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.page-subtitle,
.search-query,
.estate-description {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

.search-query strong {
    color: #3498db;
}

/* Stats Badges */
.estate-stats {
    margin-top: 20px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.badge.bg-secondary {
    background: #95a5a6 !important;
}

.badge.bg-success {
    background: #4CAF50 !important;
}

.badge.bg-info {
    background: #3498db !important;
}

.badge.bg-warning {
    background: #f39c12 !important;
}

/* ====================
   FORMS & FILTERS
   ==================== */

/* Modern Search Form */
.search-form-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

/* Modern Filters */
.filters-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Form Controls */
.form-select,
.form-control {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #95a5a6;
}

/* Buttons - Modern Style */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    color: #ffffff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
}

.btn-outline-secondary:hover {
    background: #95a5a6;
    color: #ffffff;
    border-color: #95a5a6;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ====================
   RESULTS & SORTING
   ==================== */

/* Results Header */
.results-header,
.sorting-section {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.results-count,
.results-info {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.form-select-sm {
    padding: 8px 12px;
    font-size: 14px;
}

/* ====================
   SIDEBAR WIDGETS
   ==================== */

.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.widget ul.list-unstyled {
    margin: 0;
    padding: 0;
}

.widget ul.list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.widget ul.list-unstyled li:last-child {
    border-bottom: none;
}

.widget ul.list-unstyled li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.widget ul.list-unstyled li a:hover {
    color: #3498db;
    padding-left: 8px;
}

/* Search Tips Widget */
.search-tips ul li {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    padding: 6px 0;
}

/* Estate Info Widget */
.estate-info p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.estate-stats .stat-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 12px;
}

.estate-stats .stat-item strong {
    display: block;
    font-size: 24px;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 4px;
}

.estate-stats .stat-item span {
    color: #7f8c8d;
    font-size: 13px;
}

/* Quick Stats Widget */
.stats-grid .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stats-grid .stat-row:last-child {
    border-bottom: none;
}

.stats-grid .stat-row span:first-child {
    color: #555;
    font-size: 14px;
}

/* Contact Card Widget */
.contact-card .contact-buttons a {
    margin-bottom: 12px;
}

.contact-card .contact-buttons a:last-child {
    margin-bottom: 0;
}

.contact-card .contact-buttons .btn i {
    margin-right: 8px;
}

/* School Stats Widget */
.school-stats .stats-display {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.school-stats .views-text {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Advertisement Widget */
.advertisement img {
    border-radius: 8px;
}

/* ====================
   SCHOOL DETAIL PAGE
   ==================== */

/* School Header */
.school-header {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.school-header .school-name {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.school-header .verified-badge i {
    font-size: 24px;
    margin-left: 12px;
}

.school-header .school-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.school-header .school-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7f8c8d;
    font-size: 15px;
}

.school-header .school-meta span i {
    color: #3498db;
}

/* School Gallery */
.school-gallery {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.school-gallery .main-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.school-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.school-gallery .gallery-thumbnails {
    display: flex;
    gap: 8px;
}

.school-gallery .gallery-thumbnails img {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.school-gallery .gallery-thumbnails img:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

/* School Info */
.school-info {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Modern Tabs */
.nav-tabs {
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 24px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #7f8c8d;
    font-weight: 600;
    padding: 12px 24px;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #3498db;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #3498db;
    border-color: #3498db;
    background: transparent;
}

.tab-content {
    padding: 20px 0;
}

/* Info Boxes */
.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box h4,
.info-box h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.info-box .table {
    margin-bottom: 0;
}

.info-box .table td {
    padding: 8px;
    border-color: #e0e6ed;
    font-size: 14px;
}

.info-box .table td strong {
    color: #2c3e50;
}

/* Description */
.description h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.description p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* Extracurricular Activities */
.extracurricular h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.activities-list .badge {
    font-size: 13px;
    padding: 8px 14px;
}

/* Facilities Grid */
.facilities-grid {
    margin-top: 20px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
}

.facility-item i {
    font-size: 16px;
}

/* Contact Info */
.contact-info h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.contact-info p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Map Placeholder */
.map-placeholder {
    border-radius: 8px;
    border: 2px dashed #e0e6ed;
}

/* ====================
   COUNTIES INDEX PAGE
   ==================== */

/* County List - Grid Style */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.category-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.category-quantity {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
}

.estates-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f8f9fa;
}

.estate-link {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.estate-link:hover {
    color: #3498db;
}

/* ====================
   PAGINATION
   ==================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 6px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    padding: 10px 16px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    color: #3498db;
    border-color: #3498db;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border-color: #3498db;
}

.pagination .page-item.disabled .page-link {
    color: #bdc3c7;
    pointer-events: none;
}

/* ====================
   EMPTY STATES
   ==================== */

.text-center.py-5 {
    padding: 60px 20px !important;
}

.text-center h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.text-center p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 20px;
}

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

@media (max-width: 991px) {
    .page-title,
    .section-title h2 {
        font-size: 28px;
    }

    .school-header .school-name {
        font-size: 28px;
    }

    .sidebar {
        margin-top: 40px;
        position: static;
    }

    .category-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    #main {
        padding: 20px 0 40px;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-title,
    .section-title h2 {
        font-size: 24px;
    }

    .school-header {
        padding: 20px;
    }

    .school-header .school-name {
        font-size: 24px;
    }

    .school-header .school-meta {
        flex-direction: column;
        gap: 12px;
    }

    .widget {
        padding: 20px;
    }

    .search-form-section,
    .filters-section {
        padding: 20px;
    }

    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* ====================
   UTILITY CLASSES
   ==================== */

.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 40px !important; }

.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 40px !important; }

.text-muted {
    color: #7f8c8d !important;
}

.text-primary {
    color: #3498db !important;
}

.text-success {
    color: #4CAF50 !important;
}

.w-100 {
    width: 100% !important;
}
