:root {
            --primary-color: #006a4e;
            --primary-hover: #004d38;
            --accent-color: #d9534f;
            --text-color: #2c3e50;
            --border-color: #e0e0e0;
            --bg-color: #f4f7f6;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Noto Sans Bengali', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }

        .container { max-width: 1100px; margin: 30px auto; padding: 0 15px; }

        /* Page Header */
        .page-header {
            background: #ffffff;
            padding: 20px 25px;
            border-radius: 8px;
            border-left: 5px solid var(--primary-color);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .page-header h1 { font-size: 22px; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }

        /* Controls Bar */
        .controls-bar {
            background: #ffffff;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .limit-selector { display: flex; align-items: center; gap: 8px; font-size: 14px; }
        .limit-selector select { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 14px; outline: none; }

        .search-box { display: flex; gap: 8px; }
        .search-box input { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 14px; outline: none; width: 220px; }
        .search-box button { padding: 8px 16px; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
        .search-box button:hover { background: var(--primary-hover); }

        /* Notice Cards Layout */
        .notice-grid { display: flex; flex-direction: column; gap: 15px; }

        .notice-card {
            background: #ffffff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            border: 1px solid var(--border-color);
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .notice-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

        .notice-info { 
            flex: 1; 
            min-width: 0; /* Prevents flex box overflow */
        }
        
        .title-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* Horizontal Expansion Control */
        .title-wrapper.expanded {
            flex-wrap: wrap;
        }

        .notice-title { 
            font-size: 17px; 
            color: var(--primary-color); 
            text-decoration: none; 
            font-weight: 600; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis;
            display: inline-block;
            max-width: 100%;
            transition: all 0.3s ease;
        }

        .title-wrapper.expanded .notice-title {
            white-space: normal;
            text-overflow: clip;
        }

        .notice-title:hover { color: var(--primary-hover); text-decoration: underline; }

        .more-text-btn {
            font-size: 13px;
            color: #d9534f;
            font-weight: 700;
            cursor: pointer;
            text-decoration: underline;
            white-space: nowrap;
            flex-shrink: 0;
            display: inline-block;
        }
        .more-text-btn:hover {
            color: #c9302c;
        }

        .notice-date { font-size: 13px; color: #777; display: flex; align-items: center; gap: 6px; margin-top: 6px; }

        /* Action Buttons Container */
        .notice-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .btn-action {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .btn-view {
            background: #eef7f4;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
        }
        .btn-view:hover {
            background: var(--primary-color);
            color: #ffffff;
        }

        .btn-download {
            background: var(--primary-color);
            color: #ffffff;
            border: 1px solid var(--primary-color);
        }
        .btn-download:hover {
            background: var(--primary-hover);
            border-color: var(--primary-hover);
        }

        /* Pagination Styling */
        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .page-info { font-size: 14px; color: #666; }

        .pagination { display: flex; list-style: none; gap: 5px; }
        .pagination a, .pagination span {
            padding: 8px 14px;
            border: 1px solid var(--border-color);
            background: #ffffff;
            color: var(--text-color);
            text-decoration: none;
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.2s;
        }

        .pagination a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
        .pagination .active span { background: var(--primary-color); color: white; border-color: var(--primary-color); }
        .pagination .disabled span { color: #ccc; cursor: not-allowed; }

        @media (max-width: 768px) {
            .notice-card { flex-direction: column; align-items: flex-start; }
            .notice-actions { width: 100%; justify-content: flex-start; margin-top: 10px; }
            .controls-bar { flex-direction: column; align-items: stretch; }
            .search-box input { width: 100%; }
        }
