
main {
	padding : 10px;
}

.search-section {
	text-align: center;
	background-color: #f9f9f9;
	padding: 30px 0;
	margin-bottom: 50px;
}

#search-category {
	width: 100px;
	height: 40px;
	padding: 5px;
}

#search {
	width: 300px;
	height: 40px;
	padding: 5px;
}

.search-form {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.search-button {
	height: 40px;
	padding: 5px;
	border: 1px solid #ccc;
}

ul, li {
	list-style: none;
}

.nav-tab {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #ccc;
	margin-bottom: 10px;
}

.tab-menu, .layout-selector {
  display: flex;
}

.layout-selector li:not(.active):hover {
  background-color: lightgray;
}

.tab-menu li {
  padding: 10px 20px;
  cursor: pointer;
  outline: 1px solid #ccc;
  
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.layout-selector li {
  padding: 10px;
  outline: 1px solid #ccc;
  cursor: pointer;
  text-align: center;
}

.material-icons {
	display: flex;
	justify-content: center;
	align-items: center;

	width: 24px;
}

.tab-menu li.active, .layout-selector li.active {
  background-color: #01387b;
  color: white;
}

.tab-menu li:not(.active):hover, .layout-selector li:not(.active):hover {
  background-color: lightgray;
}

.tab-menu li a,
.layout-selector li a {
    text-decoration: none;
    color: inherit; 
    display: block;
}


.articles.grid-view .article {
    flex: 1 1 calc(33.333% - 10px);
    box-sizing: border-box;
}

.seq {
	width: 50px;
}

.seq-div.list-view {
	
	display: flex;
	align-items: center; 
	justify-content: center; 
	gap: 5px;
}

.seq-div.grid-view {
	
	display: flex;
	align-items: center; 
	gap: 5px;
}

figure {
  display: flex;
  align-items: center; 
  justify-content: center; 
  gap: 30px;
}

figcaption {
	display : flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

figure img {
	width: 300px;
	height: 150px;
}

.figure-caption-bottom.list-view {
    display: flex;
	gap : 20px;
}

/* 공통 스타일 */
.articles {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.article {
    padding: 10px;
}

/* 리스트 뷰 스타일 */
.articles.list-view .article {
    display: flex;
    flex-direction: row;
    align-items: center;

	border-bottom: 1px solid #ccc;
	margin-bottom: 10px;
}

.articles.list-view figure {
    display: flex;
    align-items: center;
    margin: 0;
}

.articles.list-view figcaption {
    margin-left: 20px;
}

/* 그리드 뷰 스타일 */
.articles.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.articles.grid-view .article {
	border: 1px solid #ccc;
}

.articles.grid-view figure {
    display: block;
}

.articles.grid-view figcaption {
    margin-top: 10px;
}

.articles.grid-view .figure-caption-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;  
    align-items: center;
}

.articles.grid-view .figure-caption-bottom label {

    white-space: nowrap; 
}

.articles.grid-view .figure-caption-bottom p {
    margin: 0;
    flex: 1;
    min-width: 120px; 
	font-weight: bold;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none; 
    color: white; 
    background-color: #01387b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.button-link:hover {
    background-color: #0056b3;
}

.delete-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: white;
    background-color: #dc3545; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.delete-button:hover {
    background-color: #b02a37; 
}

.button-section {
	
	margin-top: 20px;
}

._fnctWrap {
	padding: 5px;
}

.button-link:visited {
	
	color: white;
}

.page-button-div {
	display: flex;
	align-items: center;
	justify-content: center;

	margin: 50px 0;
}

.page-button-div a {
	color: white;
}

.page-button-div a:visited {
	color: white;
}