        :root {
            --primary-blue: #002D62;
            --dark-blue: #001a3b;
        }
        body {
            background-color: #f4f6f9;
            font-family: Arial, sans-serif;
            color: #333;
        }
        /* Top Header */
        .top-header {
            background: #ffffff;
            padding: 15px 0;
            border-bottom: 3px solid var(--primary-blue);
        }
        .college-title h1 {
            font-size: 17px;
            color: var(--primary-blue);
            font-weight: bold;
            margin-bottom: 0;
            text-transform: uppercase;
        }
        .college-title p {
            font-size: 13px;
            color: #444;
            margin-bottom: 2px;
        }
        .portal-heading {
            font-size: 14px;
            color: var(--primary-blue);
            font-weight: bold;
            letter-spacing: 0.5px;
        }
        .header-info-item {
            font-size: 13px;
            color: #333;
        }
        .header-info-item i {
            color: var(--primary-blue);
            margin-right: 5px;
        }
        .college-thumb {
            width: 95px;
            height: 55px;
            object-fit: cover;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        /* Navbar */
        .navbar-custom {
            background-color: var(--primary-blue) !important;
            padding: 0;
        }
        .navbar-custom .nav-link {
            color: #fff !important;
            font-size: 12.5px;
            font-weight: bold;
            padding: 12px 14px !important;
            transition: background 0.2s;
        }
        .navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus {
            background-color: #004080;
        }
        .navbar-custom .dropdown-menu {
            border-radius: 0;
            border-top: 3px solid var(--primary-blue);
            font-size: 13px;
        }

        /* Hero Section */
        .hero-section {
            position: relative;
            background: linear-gradient(rgba(0, 45, 98, 0.78), rgba(0, 45, 98, 0.78)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1400&q=80') no-repeat center center/cover;
            padding: 140px 0;
            color: #fff;
            text-align: center;
        }
        .hero-section h2 {
            font-size: 24px;
            font-weight: normal;
            margin-bottom: 0;
        }
        .hero-section h1 {
            font-size: 30px;
            font-weight: bold;
            text-transform: uppercase;
            margin-top: 5px;
        }
        .hero-section p {
            font-size: 14px;
            color: #e0e0e0;
        }
        .search-bar-box {
            background: #fff;
            padding: 5px;
            border-radius: 6px;
            display: inline-flex;
            width: 100%;
            max-width: 520px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            margin-top: 15px;
        }
        .search-bar-box input {
            border: none;
            padding: 10px 15px;
            font-size: 13.5px;
            outline: none;
            flex: 1;
        }
        .search-bar-box button {
            background: var(--primary-blue);
            color: #fff;
            border: none;
            padding: 8px 20px;
            font-weight: bold;
            border-radius: 4px;
            font-size: 13px;
        }
        .search-bar-box button:hover {
            background: #004080;
        }

        /* Floating Quick Links Card on Hero (Desktop) */
        .hero-quick-links {
            position: absolute;
            right: 30px;
            top: 20px;
            width: 250px;
            background: #fff;
            color: #333;
            border-radius: 6px;
            text-align: left;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            overflow: hidden;
            z-index: 10;
        }
        .hero-ql-header {
            background: var(--primary-blue);
            color: #fff;
            padding: 9px 12px;
            font-size: 13px;
            font-weight: bold;
        }
        .hero-ql-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .hero-ql-list li a {
            display: block;
            padding: 7px 12px;
            font-size: 11.5px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #eee;
        }
        .hero-ql-list li a:hover {
            background: #f0f4f8;
            color: var(--primary-blue);
        }
        .hero-ql-list li a i {
            color: var(--primary-blue);
            margin-right: 8px;
            width: 14px;
        }

        /* Cards Layout */
        .custom-card {
            background: #fff;
            border-top: 4px solid var(--primary-blue);
            border-radius: 5px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .custom-card-header {
            background: var(--primary-blue);
            color: #fff;
            padding: 10px 15px;
            font-size: 13.5px;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .custom-card-header a {
            color: #fff;
            font-size: 11px;
            background: rgba(255,255,255,0.2);
            padding: 2px 6px;
            border-radius: 3px;
            text-decoration: none;
        }

        /* Announcements Content */
        .announcement-list {
            list-style: none;
            padding: 15px;
            margin: 0;
            flex: 1;
        }
        .announcement-list li {
            font-size: 12px;
            line-height: 1.4;
            margin-bottom: 11px;
            padding-bottom: 9px;
            border-bottom: 1px dashed #ddd;
            position: relative;
            padding-left: 14px;
        }
        .announcement-list li::before {
            content: "■";
            position: absolute;
            left: 0;
            color: var(--primary-blue);
            font-size: 9px;
            top: 1px;
        }
        .badge-new-tag {
            background: #d9534f;
            color: #fff;
            font-size: 8.5px;
            padding: 1px 4px;
            border-radius: 3px;
            font-weight: bold;
            margin-left: 4px;
        }
        .btn-view-announcements {
            display: block;
            background: var(--primary-blue);
            color: #fff;
            text-align: center;
            padding: 8px;
            font-size: 12px;
            font-weight: bold;
            text-decoration: none;
            margin: 0 15px 15px 15px;
            border-radius: 4px;
        }

        /* New Arrivals */
        .book-row-item {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            gap: 12px;
        }
        .book-row-item img {
            width: 42px;
            height: 56px;
            object-fit: cover;
            border: 1px solid #ddd;
        }
        .book-details h5 {
            font-size: 12px;
            color: var(--primary-blue);
            font-weight: bold;
            margin-bottom: 2px;
        }
        .book-details p {
            font-size: 11px;
            color: #555;
            margin-bottom: 1px;
        }
        .badge-available {
            background: #d4edda;
            color: #155724;
            font-size: 9.5px;
            padding: 1px 5px;
            border-radius: 3px;
            font-weight: bold;
            display: inline-block;
            margin-top: 2px;
        }

        /* Important Links Grid */
        .imp-links-grid {
            padding: 15px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .imp-link-box {
            background: #f8f9fa;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            text-align: center;
            padding: 8px 4px;
            text-decoration: none;
            color: #333;
            transition: 0.2s;
        }
        .imp-link-box:hover {
            background: var(--primary-blue);
            color: #fff;
        }
        .imp-link-box:hover i {
            color: #fff;
        }
        .imp-link-box i {
            font-size: 18px;
            color: var(--primary-blue);
            margin-bottom: 4px;
            display: block;
        }
        .imp-link-box span {
            font-size: 9.5px;
            font-weight: bold;
            display: block;
            line-height: 1.1;
        }

        /* Library Services Bar Section */
        .services-wrapper-card {
            background: #fff;
            border-top: 4px solid var(--primary-blue);
            border-radius: 5px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
            padding: 18px;
            text-align: center;
            margin-top: 10px;
            margin-bottom: 30px;
        }
        .services-heading {
            font-size: 14.5px;
            color: var(--primary-blue);
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 15px;
        }
        .services-flex-grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            gap: 5px;
        }
        @media(max-width: 1100px) {
            .services-flex-grid { grid-template-columns: repeat(5, 1fr); }
        }
        @media(max-width: 600px) {
            .services-flex-grid { grid-template-columns: repeat(3, 1fr); }
        }
        .service-single-item {
            text-decoration: none;
            color: #333;
            padding: 8px 2px;
            border-radius: 4px;
            transition: background 0.2s;
        }
        .service-single-item:hover {
            background: #f0f4f8;
        }
        .service-single-item i {
            font-size: 20px;
            color: var(--primary-blue);
            margin-bottom: 6px;
            display: block;
        }
        .service-single-item span {
            font-size: 10.5px;
            font-weight: bold;
            display: block;
            line-height: 1.2;
        }

        /* Footer */
        footer {
            background-color: var(--dark-blue);
            color: #fff;
            padding: 35px 0 15px 0;
            font-size: 12px;
        }
        .footer h3 {
            font-size: 13.5px;
            font-weight: bold;
            margin-bottom: 12px;
            border-bottom: 2px solid #004080;
            padding-bottom: 4px;
        }
        .footer p {
            color: #ccc;
            line-height: 1.5;
            margin-bottom: 8px;
        }
        .footer a {
            color: #4da6ff;
            text-decoration: none;
        }
        .footer-social-icons {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }
        .footer-social-icons a {
            background: #004080;
            color: #fff;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 12px;
        }
        .footer-counter-table {
            width: 100%;
            font-size: 11.5px;
        }
        .footer-counter-table td {
            padding: 3px 0;
            color: #ccc;
        }
        .footer-counter-table td:last-child {
            text-align: right;
            font-weight: bold;
            color: #fff;
        }
        .footer-bottom-bar {
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: 25px;
            padding-top: 12px;
            font-size: 11px;
            color: #aaa;
            display: flex;
            justify-content: space-between;
        }
        @media(max-width: 768px) {
            .footer-bottom-bar { flex-direction: column; text-align: center; gap: 6px; }
            .hero-quick-links { display: none; } /* Hide floating quick links box on smaller screen */
        }