 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Calibri;
            background: #fff;
            min-height: 100vh;
            padding: 30px;
            position: relative;
        }

        /* Search header styling */
        .search-header {
            display: flex;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto 10px;
            padding: 0 15px;
        }

        .search-area {
            display: flex;
            align-items: center;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 2px 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            border: 1px solid #071739;
            flex: 0 1 auto;
            width: 100%;
            max-width: 600px;
        }

        .custom-search-container {
            display: flex;
            align-items: center;
            width: 100%;
        }

        .custom-search-box {
            flex: 1;
            position: relative;
        }

        #search-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #4b6382;
            border-radius: 5px;
            font-size: 18px;
            outline: none;
            transition: border-color 0.3s;
        }

        #search-input:focus {
            border-color: #4b6382;
            box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
        }

        #search-button {
            background: #0d1b2e;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            margin-left: 10px;
            transition: all 0.3s ease;
        }

        #search-button:hover {
            background: #1e2a36;
        }

        .search-explanation {
            color: #4b6382;
            font-size: 1.1rem;
            margin-left: 15px;
            white-space: nowrap;
        }

        /* Google CSE styling */
        .gsc-control-cse {
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
        }
        
        .gsc-search-box {
            margin-bottom: 0 !important;
        }
        
        .gsc-input-box {
            border-radius: 5px !important;
            padding: 0 !important;
            border: 1px solid #4b6382 !important;
        }
        
        .gsc-input {
            padding: 2px 70px !important;
        }
        
        .gsc-search-button {
            margin-left: 10px !important;
        }
        
        .gsc-search-button-v2 {
            border-radius: 5px !important;
            padding: 10px 20px !important;
            background-color: #4b6382 !important;
            border: none !important;
        }

        .button-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            max-width: 1400px;
            margin: 0 auto 50px;
        }

             .title {
            display: flex;
            position: relative;
            text-decoration: none;
            transition: all 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 100%;
            height: 250px;
            margin-bottom: 30px;
            justify-content: center;
        }

        .portal-btn {
            display: flex;
            flex-direction: column;
            position: relative;
            text-decoration: none;
            transition: all 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            background-color: #cdd5d8;
            height: 500px; /* Fixed height for all buttons */
        }

    /*  */

        .portal-btn img {
            width: 100%;
            height: 200px; /* Fixed image height */
            object-fit: contain;
            display: block;
            transition: all 0.3s ease;
            background-color: #cdd5d8;
            padding-top: 10px; /* Add this line to move image down */
            padding-left: 5px; /* Add this line to move image down */
            padding-right: 5px; /* Add this line to move image down */
            
        }

        .button-text {
            padding: 15px;
            background-color: #cdd5d8;
            font-weight: bold;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        
        }

        .button-list {
            list-style-type: none;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Distribute items evenly */
        }

        .button-list li {
    font-size: 1.3rem;
    color: #4b6382;
    padding: 8px 5px; /* Added horizontal padding */
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    line-height: 1.2; /* Added line-height for better spacing */
    word-wrap: break-word; /* Ensure long words break properly */
    hyphens: auto; /* Add hyphenation for better text flow */
}

/* For mobile responsiveness */
@media (max-width: 480px) {
    .button-list li {
        font-size: 0.85rem;
        padding: 8px 3px; /* Slightly less padding on mobile */
        line-height: 1.3; /* Slightly less line height on mobile */
    }
}

        .button-list li:last-child {
            border-bottom: none;
        }

        .empty-line {
            opacity: 0; /* Make empty lines invisible */
            pointer-events: none;
        }

        .portal-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
        }

        .portal-btn:hover img {
            opacity: 0.9;
        }

        footer {
            text-align: center;
            padding: 20px;
        }

        .footer-link img {
            max-width: 200px;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .footer-link:hover img {
            transform: scale(1.02);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .button-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
            }
            
            .portal-btn {
                height: 450px; /* Slightly smaller on tablets */
            }
            
            .portal-btn img {
                height: 180px;
            }
            
            .search-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .search-area {
                width: 100%;
                margin-bottom: 10px;
                flex-direction: column;
            }
            
            .custom-search-container {
                flex-direction: column;
            }
            
            #search-button {
                margin-left: 0;
                margin-top: 10px;
                width: 100%;
            }
            
            .search-explanation {
                margin-left: 0;
                margin-top: 10px;
            }
            
            .gsc-search-button {
                margin-left: 0 !important;
                margin-top: 10px !important;
                width: 100% !important;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .button-grid {
                grid-template-columns: 1fr;
            }
            
            .portal-btn {
                height: 400px; /* Smaller on mobile */
            }
            
            .portal-btn img {
                height: 150px;
            }
            
            .search-explanation {
                font-size: 1rem;
            }
            
            .search-area {
                padding: 2px 2px;
            }
            
            .button-list li {
                font-size: 0.85rem;
                padding: 6px 0;
            }
        }