/*
Theme Name: Benguet State University - Intramurals
Author: Naycer Jeremy G. Tulas
Description: A custom classic theme.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
	--dark-grey:#555;
	--yellow:#d78201;
}
html {
	margin:0;
	padding:0;
	height: 100%;
}
body {
	background:#f0f2f5;
	font-family: "Roboto Slab",serif;
	display: flex;
  	flex-direction: column;
  	justify-content: space-between;
  	height: 100%;
}

.font-two {
	 font-family: "Bonheur Royale", cursive;
	 font-weight: normal;
}

td.rank-cell { font-weight:bold; border-radius:4px; }
.fade-in { opacity:0; transition: opacity 0.5s ease-in; }
.fade-in.show { opacity:1; }
h1 {color:var(--yellow);}
h2 {color:#555}

.hd-title h4 {
	color:#555;
	font-size:1.2rem;
}

.hd-description h1 {
   text-shadow: 1px 1px rgba(0,0,0,0.6);
   color: var(--yellow);
   font-size:1.6rem;
}

.hd-theme h6 {
	font-size:1.6rem;
}

/*h1,h2 {
	color: var(--dark-grey);
}*/
.college-color {background: var(--yellow)}

.text-college-color {
	color:var(--yellow);
}
#header-logo img { max-width:100px; margin-right: 16px; height:auto}

.bx-shad {
	box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}


.btn-primary {
	background: var(--yellow) !important;
	border-color: var(--yellow) !important;
}

header.main-hd {
	background: #fff;
	box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
header h1 {
	line-height: 100%;
}

.article-contain h2 {
	font-size:1.2rem;
	color:inherit;
}

.article-contain h2 a {
	text-decoration: none;
	color: inherit;
}

.single-title {
	color:#555;
	font-size:2rem;
}

#primary-menu {
	padding:0;
	margin: 0;
	list-style-type: none;
	display: flex;
	justify-content: center;
}

#primary-menu li {
	margin:0 1rem;
}

#primary-menu li a {
	text-decoration: none;
	color:inherit;
}

#primary-menu li.current_page_item a {
	color: var(--yellow);
}

.article-contain .entry-header {
	background:var(--yellow);
}

.article-contain .posted-on {
	font-size:0.9rem;
}

.navigation.pagination {
	margin:1rem 0;
	text-align: center;
	justify-content: center;
	font-size:1.2rem;
}

.navigation.pagination .nav-links a {
	text-decoration: none;
	color:var(--yellow);
}

/*.navigation.pagination .nav-links .page-numbers {
	margin: 0 1rem;
}*/

/*page navigation*/
/* Pagination Container */
.navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0; /* no spacing between borders */
    font-family: inherit;
}

/* Page Numbers */
.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d1d5db; /* light gray */
    color: #374151;
    text-decoration: none;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: -1px; /* collapse double borders */
}

/* Remove double border on first item */
.navigation.pagination .page-numbers:first-child {
    margin-left: 0;
}

/* Hover Effect */
.navigation.pagination .page-numbers:hover {
    background-color: #f3f4f6;
}

/* Current Page */
.navigation.pagination .page-numbers.current {
    background-color: #e5e7eb;
    font-weight: 600;
    cursor: default;
}

/* Rounded Corners */
.navigation.pagination .page-numbers:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.navigation.pagination .page-numbers:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Optional: Style Next button same as others */
.navigation.pagination .next.page-numbers {
    font-weight: 500;
}
/*end page navigation*/

main {
	flex:1;
}

article.post .entry-meta {
		font-size:0.8rem;
	}

	article.post h1.entry-title {
	margin-bottom:12px !important;	
	}

@media screen and (max-width: 420px) {
	 .hd-description h1 {font-size:1.2rem}
	 .hd-title h4  {font-size:0.8rem}
	 body { padding-left:0; padding-right:0; }
	 #header-logo img{ max-width: 75px; }

	 .hd-description h1 {
		text-shadow: 1px 1px rgba(0,0,0,0.2);
	}

	.hd-theme h6 {
		font-size:0.8rem;
	}

	article.post h1.entry-title {
		font-size: 1.3rem;
		
		padding-bottom: 8px;
    	border-bottom: 4px solid var(--yellow);
	}

	
}

/* Image Alignment */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image Caption */
.wp-caption {
    border: 1px solid #f0f0f0;
    background: #f8f8f8;
    padding: 0.4em 0.5em 0.5em;
    text-align: center;
    max-width: 100%;
}

.wp-caption img {
    margin: 0;
    padding: 0;
    border: 0;
    height: auto;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin-top: 0.5em;
}

/* Clear floats after images */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Basic Paragraph/Text Styling */
.entry-content p {
    margin: 0 0 1.5em;
    line-height: 1.6;
}

.entry-content a {
    color: #0073aa;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #005177;
    text-decoration: none;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #ccc;
    margin: 1.5em 0;
    padding-left: 1em;
    color: #555;
    font-style: italic;
}

/* floating buttons */

.mobile-actions{
position:fixed;
right:15px;
bottom:20px;
display:flex;
flex-direction:column;
gap:10px;
z-index:999;
}

.fab{
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#e3a74d;
color:white;
font-size:20px;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

/* expanding search */

.mobile-search{
    position:fixed;
    top:-80px;
    left:0;
    width:100%;
    background:white;
    padding:10px;
    transition:.3s;
    z-index:1000;
}

/* when opened */
.mobile-search.active{
    top:0;
}

/* adjust when admin bar is visible */
.admin-bar .mobile-search.active{
    top:32px;
}

/* mobile admin bar height */
@media screen and (max-width:782px){
    .admin-bar .mobile-search.active{
        top:46px;
    }
}

.mobile-search form{
display:flex;
gap:8px;
}

.mobile-search input{
flex:1;
padding:8px;
}

/* overlay */

#overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.4);
opacity:0;
pointer-events:none;
transition:.3s;
z-index:998;
}

#overlay.active{
opacity:1;
pointer-events:auto;
}

/* bottom sheet */

.tags-sheet{
position:fixed;
bottom:-100%;
left:0;
width:100%;
height:60%;
background:white;
border-radius:20px 20px 0 0;
padding:15px;
transition:.3s;
z-index:999;
}

.tags-sheet.open{
bottom:0;
}

.sheet-header{
display:flex;
justify-content:space-between;
font-weight:bold;
margin-bottom:10px;
}

/* tag pills */

.tag-pill{
display:inline-block;
padding:6px 12px;
margin:4px;
background:#eee;
border-radius:20px;
text-decoration:none;
color:#333;
font-size:14px;
}



.event-table.table th:first-child,
.event-table.table td:first-child {
    position: sticky;
    left: 0;
    background: white; /* allow row color */
    z-index: 2;
    box-shadow: 1px 0 0 #dee2e6;
}

.event-table.table thead th:first-child {
    background: #212529; /* keep header dark if using table-dark */
    z-index: 3;
}

/* ensure hover affects sticky column */
.event-table.table-hover tbody tr:hover td:first-child {
    background: #ececec;
}