/* Matariki Template CSS Overrides */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #0066cc;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-link-color-rgb: var(--primary-color);
}
a{
    color: var(--accent-color);
    text-decoration: none;
}
/* Header and Navigation Styles */
.header {
	background: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	position: sticky;
	top: 0;
	z-index: 1000;
    padding: 0.5rem 0;
}

.header .navbar {
    padding: 0;
}

.header .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.header .navbar-toggler:focus {
    box-shadow: none;
}
.mod-breadcrumbs__wrapper {
	margin: 0 -1rem;
}
.breadcrumb{
    margin-bottom: 0;
}
.header .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header .nav-link {
	color: var(--primary-color);
	font-weight: 500;
	padding: 0.5rem;
	position: relative;
	/* text-transform: uppercase; */
	line-height: 1;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--accent-color);
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 100%;
}



.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.offcanvas-body {
    padding: 1.5rem;
}

.btn-close {
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Hero Section */
.hero-banner {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: -1px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;

}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-button:hover {
    background: #0055cc;
    color: white;
}



/* Blog Layout Styles */
.blog {
    padding: 2rem 0;
    font-family: var(--font-primary);
}



.blog-item {
   height: 100%;
}

.item-image {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	border-radius: 12px;
}
.item-image img,
.item-image .default-intro-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-category {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	background: rgba(255, 255, 255, 0.95);
	padding: 0.25rem 0.75rem;
	border-radius: 30px;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	backdrop-filter: blur(5px);
	box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.item-category a {
    color: var(--accent-color);
    text-decoration: none;
}

.item-content {
	padding: 1rem 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.item-title {
    margin-bottom: 0.5rem;
}

.item-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-excerpt {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 400;
}

.readmore {
    margin-top: auto;
}

.readmore a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Category Title */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1, .blog h2 {
	font-size: 1.25rem;
	color: var(--primary-color);
	font-weight: 700;
	margin-bottom: 0.5rem;
	letter-spacing: -0.25px;
	text-align: left;
}

.page-header .header-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.25rem;
}


.logo {
	height: 64px;
}

/* Article Page */


.article-header {
    margin-bottom: 2rem;
}
.header .navbar > div {
	align-items: flex-end;
}
.navbar-brand{
    padding: 0.5rem 0;
}
.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Article Page Styles */
.com-content-article {

}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-info {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-info-term {
    display: none;
}

.article-info dd {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-info dd a {
    color: var(--accent-color);
    text-decoration: none;
}

.article-info dd a:hover {
    color: var(--primary-color);
}

.article-info .icon-fw {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.com-content-article__body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.com-content-article__body p {
    margin-bottom: 1.5rem;
}

.com-content-article__body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
}

.com-content-article__body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.com-content-article__body a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.com-content-article__body a:hover {
    border-bottom-color: var(--accent-color);
}

/* Article Navigation */
.pagenavigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.pagenavigation .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagenavigation .btn:hover {
    background: var(--accent-color);
    color: white;
}

.pagenavigation .btn.next:hover {
    transform: translateX(3px);
}



/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Login Form Overrides */
.mod-login {
    background: var(--secondary-color);
    
    border-radius: 8px;
    box-shadow: var(--card-shadow);

    margin: 0 auto;
}

.mod-login__userdata input.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.mod-login__userdata input.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 0;
    color: #666;
}

.btn.input-password-toggle {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 0;
    color: #666;
}

.btn.input-password-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.mod-login__submit .btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mod-login__submit .btn-primary:hover {
    background: #0055cc;
}

.mod-login__remember .form-check-label {
    color: #666;
    font-size: 0.9rem;
}

.mod-login__options a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 0.5rem 0;
}

.mod-login__options a:hover {
    color: var(--accent-color);
}



/* Content Category Grid Layout */
.content-category {
    
    background-color: #f8f9fa;
}

.com-content-category__articles {

    margin: 0 auto;
}

.com-content-category__table {
    background: transparent;
    border: none;
    border-collapse: separate;
    border-spacing: 0 1rem;
    margin-top: 2rem;
}

.com-content-category__table tbody tr {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.com-content-category__table tbody tr:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.com-content-category__table thead th {
    background: transparent;
    border: none;
    color: #666;
    font-weight: 500;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.com-content-category__table thead th a {
    color: #666;
    text-decoration: none;
}

.com-content-category__table thead th a:hover {
    color: var(--accent-color);
}

.com-content-category__table tbody td,
.com-content-category__table tbody th {
    background: white;
    padding: 1.5rem;
    border: none;
}

.com-content-category__table tbody tr td:first-child,
.com-content-category__table tbody tr th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.com-content-category__table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.com-content-category__table .list-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.com-content-category__table .list-title a:hover {
    color: var(--accent-color);
}

.com-content-category__table .list-author {
    color: #666;
    font-size: 0.9rem;
}

.com-content-category__table .badge {
    background-color: var(--accent-color);
    border-radius: 20px;
    padding: 0.5em 1em;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Pagination and Form Elements */
.com-content-category__pagination {
    margin: 2rem 0;
}

.com-content-category__pagination select.form-select {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.com-content-category__pagination select.form-select:hover {
    border-color: var(--accent-color);
}

.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: none;
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.pagination .page-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.pagination .active .page-link {
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
}

.pagination .disabled .page-link {
    background-color: #f8f9fa;
    color: #aaa;
    pointer-events: none;
    box-shadow: none;
}

.mod-banners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mod-banners__item {
    width: 100%;
    margin: 0.25rem 0;
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-banners__item a {
    display: block;
    width: 100%;
    padding: 0.25rem;
}

.mod-banners__item img {
    width: 100%;
    height: auto;
    padding: 0.25rem;
    margin: 0.25rem 0;
    object-fit: contain;
}
