:root {
    --gh-orange: #f26a21;
    --gh-orange-dark: #d95a18;
    --gh-orange-soft: #fff0e8;
}

/* Global links and buttons */
a,
a:visited,
a:hover,
a:focus,
a:active,
.content-title h2 a,
.content-title h2 a:visited,
.content-title h2 a:hover,
.content-title h2 a:focus,
.content-title h2 a:active,
.dropmenu ul li a.active,
.dropmenu ul li a:focus,
.dropmenu ul li a:hover,
.treemenu li a.active,
.treemenu li a:focus,
.treemenu li a:hover {
    color: var(--gh-orange) !important;
}

.btn,
.button {
    color: var(--gh-orange);
    border-color: var(--gh-orange);
}

.btn:hover,
.btn:focus,
.btn:active,
.button:hover,
.button:focus,
.button:active {
    color: #fff;
    border-color: var(--gh-orange-dark);
    background: var(--gh-orange);
    text-decoration: none;
}

.btn-primary,
button.btn-primary,
#grav-login .login-form button[type=submit],
#grav-login .twofa-form button[type=submit]:first-child {
    color: #fff !important;
    background: var(--gh-orange);
    border-color: var(--gh-orange);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
#grav-login .login-form button[type=submit]:hover,
#grav-login .login-form button[type=submit]:focus,
#grav-login .twofa-form button[type=submit]:first-child:hover,
#grav-login .twofa-form button[type=submit]:first-child:focus {
    color: #fff !important;
    background: var(--gh-orange-dark);
    border-color: var(--gh-orange-dark);
}

/* Shared accent elements */
.hero h1,
.title-center h1,
.pagination .page-item.active a,
.tab .tab-item a.active,
.tab .tab-item.active a {
    color: var(--gh-orange) !important;
}

.pagination .page-item.active a {
    background: var(--gh-orange) !important;
    border-color: var(--gh-orange) !important;
}

.mobile-menu .button_container span {
    background: var(--gh-orange) !important;
}

/* Header */
#header,
#header .navbar-section {
    height: 5.25rem;
}

#header .logo img {
    height: 90px;
}

body.header-fixed.header-animated #header.scrolled {
    height: 4.25rem;
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: 4.25rem;
}

body.header-fixed.header-animated #header.scrolled .logo img {
    height: 46px;
}

.header-dark #header,
.header-dark #header.scrolled {
    color: #fff;
    background: #000000 !important;
}

.header-dark #header a,
.header-dark #header.scrolled a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.header-dark #header a:hover,
.header-dark #header a:focus,
.header-dark #header.scrolled a:hover,
.header-dark #header.scrolled a:focus {
    color: #fff !important;
}

.header-dark #header .logo svg path,
.header-dark #header.scrolled .logo svg path {
    fill: #fff;
}

/* Header CTA */
#header .header-cta {
    color: #fff !important;
    background: var(--gh-orange);
    border-color: var(--gh-orange);
}

#header .header-cta:hover,
#header .header-cta:focus,
#header .header-cta:active,
#header .header-cta:visited {
    color: #fff !important;
    background: var(--gh-orange-dark);
    border-color: var(--gh-orange-dark);
    text-decoration: none;
}

#header .header-cta.btn,
#header .header-cta.btn:visited,
#header .header-cta.btn:hover,
#header .header-cta.btn:focus,
#header .header-cta.btn:active {
    color: #fff !important;
    background: var(--gh-orange) !important;
    border-color: var(--gh-orange) !important;
    text-decoration: none !important;
}

/* Blog hero */
#to-start {
    display: none !important;
}

#blog-hero.hero {
    padding-bottom: 1.5rem;
    min-height: auto;
}

#blog-hero .container {
    max-width: 1100px;
}

#blog-hero p:last-child {
    margin-bottom: 0;
}

/* Breadcrumb */
.simple-breadcrumb {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: #7a8597;
    text-align: center;
}

.simple-breadcrumb a {
    color: var(--gh-orange) !important;
    text-decoration: none;
}

.simple-breadcrumb a:hover,
.simple-breadcrumb a:focus {
    text-decoration: underline;
}

/* Blog grid layout */
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    border: 1px solid #ece7e2;
    border-radius: 18px;
    background: #f7f7f5;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.12);
}

.blog-post-card .card-image {
    margin-bottom: 0.9rem;
}

.blog-post-card .card-image img {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center center;
}

.blog-post-card .card-header,
.blog-post-card .card-body,
.blog-post-card .card-footer {
    padding: 0;
}

.blog-post-card .card-header {
    padding-bottom: 1rem;
}

.blog-post-card .card-title h5,
.blog-post-card .card-title .p-name {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.blog-post-card .card-title a,
.blog-post-card .card-title a:visited {
    color: #000 !important;
    text-decoration: none !important;
}

.blog-post-card .card-title a:hover,
.blog-post-card .card-title a:focus,
.blog-post-card .card-title a:active {
    color: var(--gh-orange) !important;
    text-decoration: none !important;
}

.blog-post-card .card-subtitle,
.blog-post-card .blog-date {
    font-size: 0.82rem;
    color: #6b7280 !important;
}

.blog-post-card .card-body {
    display: none;
}

.blog-post-card .card-footer {
    margin-top: auto;
    text-align: left;
}

.blog-post-card .read-more-link,
.blog-post-card .read-more-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--gh-orange) !important;
    text-decoration: none !important;
}

.blog-post-card .read-more-link:hover,
.blog-post-card .read-more-link:focus,
.blog-post-card .read-more-link:active {
    color: #000 !important;
    text-decoration: none !important;
}

.blog-post-card .read-more-link span {
    font-size: 1.1em;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1100px) {
    .blog-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-card .card-image img {
        height: 200px;
    }
}

