/* Layout Styles */
        * {
            box-sizing: border-box;
        }
        
        body {
            background-color: #e0e3e8;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        /* Main container for the 3-column layout */
        .wrapper {
            max-width: 1800px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 0 15px;
        }
        
        /* Header styles */
        .header {
            background-color: #003366;
            color: white;
            padding: 20px 0;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            width: 100%;
        }
        
        .header h1 {
            font-size: 32px;
            margin-bottom: 8px;
        }
        
        .header p {
            font-size: 16px;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
        }
        
        /* Left ad column */
        .left-ads {
            width: 300px;
        }
        
        /* Main tool area */
        .main-tool {
            flex: 1;
            min-width: 300px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 15px;
        }
        
        /* Right ad column */
        .right-ads {
            width: 300px;
        }
        
        /* Ad placeholders */
        .ad-300x250 {
            width: 300px;
            height: 250px;
            background-color: #e0e0e0;
            border: 1px dashed #999;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            margin-bottom: 20px;
            font-weight: bold;
        }
        
        .ad-300x600 {
            width: 300px;
            height: 600px;
            background-color: #e0e0e0;
            border: 1px dashed #999;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            margin-bottom: 20px;
            font-weight: bold;
        }
        
        /* Footer */
        .footer {
            background-color: #2c3e50;
            color: white;
            padding: 30px 0;
            margin-top: 40px;
            width: 100%;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            gap: 30px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 200px;
        }
        
        .footer-column h3 {
            font-size: 18px;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 8px;
        }
        
        .footer-column ul {
            list-style: none;
            padding-left: 0;
        }
        
        .footer-column ul li {
            margin-bottom: 8px;
        }
        
        .footer-column ul li a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-column ul li a:hover {
            color: white;
            text-decoration: underline;
        }
        
        .copyright {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 14px;
            color: #aaa;
        }
        
       /* Responsive design for layout */
        @media (max-width: 1200px) {
            .card {
                flex: 0 0 calc(33.333% - 20px);
                max-width: calc(33.333% - 20px);
            }
        }
        
        @media (max-width: 992px) {
            .card {
                flex: 0 0 calc(50% - 20px);
                max-width: calc(50% - 20px);
            }
        }
        
        @media (max-width: 576px) {
            .card {
                flex: 0 0 calc(100% - 20px);
                max-width: calc(100% - 20px);
            }
        }
        
        @media (max-width: 1320px) {
            .wrapper {
                justify-content: center;
                flex-direction: column;
                align-items: center;
            }
            
            .main-tool {
                order: 1;
                min-width: calc(100% - 40px);
                width: calc(100% - 40px);
                max-width: 1200px;
                margin: 20px;
            }
            
            .left-ads {
                order: 2;
                display: flex;
                width: calc(100% - 40px);
                max-width: 1200px;
                margin: 0 20px;
                padding: 0;
                justify-content: center;
                gap: 20px;
            }
            
            .right-ads {
                order: 3;
                display: flex;
                width: calc(100% - 40px);
                max-width: 1200px;
                margin: 0 20px;
                padding: 0;
                justify-content: center;
                gap: 20px;
            }
            
            .ad-300x250, .ad-300x600 {
                margin-bottom: 20px;
            }
        }
        
        /* Enhanced mobile styles - fixed centering */
        @media (max-width: 991px) {
            .main-tool {
                padding: 15px;
                margin-left: auto;
                margin-right: auto;
            }
            
            .progress {
                height: 30px !important;
            }
            
            .card-header {
                padding: 15px 10px;
            }
            
            .list-group-item {
                padding: 12px 10px;
            }
            
            #searchArea {
                max-width: 90%;
                margin: auto 0 !important;
            }
            
            /* Force single column layout with proper centering */
            .card {
                width: 100% !important;
                flex: none !important;
                max-width: none !important;
                margin-left: 15px auto !important;
                margin-right: 0 15px !important;
                display: block;
            }
            
            #card-list {
                margin: 0 auto;
                padding: 0 15px;
                display: block;
                width: 100%;
            }
            
            /* Container adjustments */
            .container-fluid {
                padding-left: 15px;
                padding-right: 15px;
            }
            
            .row {
                margin-left: 0;
                margin-right: 0;
            }

            .navbar {
            width: 95%;
             margin: 15px 9px !important;
        }
        }
        
        @media (max-width: 992px) {
            .main-tool {
                width: 100%;
                min-width: 100%;
            }
            
            .left-ads, .right-ads {
                display: flex;
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
                gap: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 24px;
            }
            
            .main-tool {
                padding: 10px;
                margin-left: auto;
                margin-right: 50px;
            }
        }
        
        /* Enhanced College Scorecard CSS */
        #searchArea {
            color: #003366;
            border: 2px solid #003366;
            border-radius: 50px;
            display: flex;
            padding: 0.35rem 0.5rem 0.35rem 1.25rem;
            background-color: #fff;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            max-width: 600px;
            margin: 0 auto;
        }
        
        .searchArea:hover,
        .searchBtn:focus {
            box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
            transform: translateY(-2px);
        }

        #search-el {
            border: 0;
            font-size: 16px;
            color: #333;
        }

        #navbar {
            margin-top: 20px;
        }

        #spinner {
            margin: 20px auto;
            text-align: center;
        }
        
        #spinner strong {
            color: #003366;
            font-size: 18px;
            margin-right: 15px;
        }

        .spin-display,
        .clear-display,
        .msg-display {
            display: none;
        }

        #navbarParent {
            background: linear-gradient(135deg, #026aa2 0%, #008ad4 100%);
            border-radius: 10px;
            margin: 20px 0;
            padding: 12px 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        #navbarParent h4 {
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        
        #clearResults {
            background-color: #ff9800;
            border: none;
            padding: 8px 16px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        #clearResults:hover {
            background-color: #e68a00;
            transform: translateY(-2px);
        }

        #card-list {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            
        }
        
        /* Pagination styles */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin: 30px 0;
        }
        
        .pagination {
            display: flex;
            list-style: none;
            padding: 0;
            margin: 0;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .pagination li {
            margin: 0;
        }
        
        .pagination a {
            color: #003366;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 15px;
            text-decoration: none;
            transition: all 0.3s ease;
            background-color: #fff;
            border-right: 1px solid #e9ecef;
            min-width: 40px;
        }
        
        .pagination li:last-child a {
            border-right: none;
        }
        
        .pagination a:hover {
            background-color: #e9f4fd;
        }
        
        .pagination a.active {
            background-color: #003366;
            color: white;
            font-weight: 600;
        }
        
        .pagination .disabled a {
            color: #adb5bd;
            pointer-events: none;
            background-color: #f8f9fa;
        }

        .form-control:focus {
            outline: none;
            border: none !important;
            -webkit-box-shadow: none !important;
            -moz-box-shadow: none !important;
            box-shadow: none !important;
        }

        #searchBtn {
            cursor: pointer;
            background-color: transparent;
            background-repeat: no-repeat;
            min-width: 48px;
            min-height: 48px;
            outline: none;
            box-shadow: 0px 0px 0px transparent;
            border: 0px solid transparent;
            text-shadow: 0px 0px 0px transparent;
            color: #003366;
            font-size: 18px;
            transition: all 0.3s ease;
        }
        
        #searchBtn:hover {
            transform: scale(1.1);
        }

        .searchBtn:hover,
        .searchBtn:focus,
        .clearBtn:hover,
        .clearBtn:focus {
            padding-bottom: 0.5rem;
            border-bottom-width: 1px;
            border-bottom-style: solid;
        }

        #clearBtn {
            cursor: pointer;
            border: none;
            background: transparent;
            min-width: 48px;
            min-height: 5px;
            outline: none;
            color: #e74c3c;
            border-right: thin solid #003366;
            transition: all 0.3s ease;
            font-size: 16px;
        }
        
        #clearBtn:hover {
            color: #c0392b;
            transform: scale(1.1);
        }

        .clear-results {
            display: none;
        }

        /* Enhanced Card Styles - optimized for exactly 3 cards per row */
        .card {
            transition: all 0.3s ease;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: none !important;
            background: linear-gradient(135deg, #004080 0%, #0078c8 100%) !important;
            margin: 10px;
            flex: 0 0 calc(32% - 20px); /* Adjusted for exactly 3 cards per row */
            max-width: calc(32% - 20px);
        }
        
        #card-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            margin: -10px; /* Negative margin to counteract card margins */
            padding: 0;
        }
        
        .card-header h4 {
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 20px;
        }

        .schoolLink:link {
            color: #ffffff;
            background-color: transparent;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .schoolLink:hover {
            color: #ffeb3b;
            text-decoration: none;
            text-shadow: 0 0 8px rgba(255,255,255,0.4);
        }

        .list-group-item {
            background-color: #f8f9fa;
            border-color: #e9ecef;
            padding: 15px;
        }
        
        .list-group-item:first-child {
            background-color: #e9f4fd;
            color: #003366;
            font-weight: 600;
            text-align: center;
            letter-spacing: 0.5px;
            padding: 12px;
        }
        
        .list-group-item strong {
            color: #003366;
        }
        
        .progress {
            height: 24px !important;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05) inset;
        }
        
        .progress-bar {
            background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
            color: #003366 !important;
            font-weight: 600;
            text-shadow: 0 1px 1px rgba(255,255,255,0.3);
        }
        
        .btn-outline-success {
            border-width: 2px;
            font-weight: 500;
            padding: 8px 16px;
            transition: all 0.3s ease;
        }
        
        .btn-outline-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        h2 {
            text-align: center;
            color: #003366;
            font-weight: 600;
            margin: 30px 0;
        }

        p {
            font-size: 15px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 10px 5px;
        }

        #stateName {
            font-size: 14px;
            color: rgba(255,255,255,0.8);
            margin-bottom: 5px;
            font-weight: 500;
        }

        #underG {
            font-size: 15px;
            margin-top: 5px;
            font-weight: 500;
            color: rgba(255,255,255,0.9);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        
        .card-header {
            border-bottom: none;
            background: rgba(255,255,255,0.05);
            padding: 20px 15px;
            position: relative;
            overflow: hidden;
        }
        
        .card-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
        }

        /* Comparison View Styles */
        #comparison-view {
            background-color: #f8f9fa;
            border: 2px solid #003366;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            display: none;
        }

        #comparison-view h3 {
            color: #003366;
            margin-bottom: 20px;
            text-align: center;
        }

        #comparison-table {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #comparison-table table {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            min-width: 600px;
            width: 100%;
        }

        #comparison-table th {
            background-color: #003366;
            color: white;
            text-align: center;
            padding: 12px;
        }

        #comparison-table td {
            text-align: center;
            padding: 10px;
            vertical-align: middle;
        }

        #comparison-controls {
            text-align: center;
            margin-bottom: 15px;
        }

        #view-comparison {
            display: none;
            background-color: #28a745;
            border: none;
            padding: 10px 20px;
            font-weight: 600;
            margin-left: 10px;
        }

        #view-comparison:hover {
            background-color: #218838;
        }
 