/** Global Styles **/
:root {
    --primary-color: #019243;
    --secondary-color: #e6f4ea;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 30px;
}

.btn-primary-custom:hover {
    background-color: #017a38;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(1, 122, 56, 0.4);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

/* .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
} */

/** Flow-Diagram **/
.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.tree .card {
    width: 150px;
    text-align: center;
    border: none;
    background: #019243;
    position: relative;
    padding: 17px;
    color:white;
}

.name-block {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tree-level::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
    z-index: 0;
}

.tree-level:first-child::after {
    content: none;
}

.tree .card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #000;
    z-index: 1;
}

.tree-level:first-child .card::before {
    content: none;
}

.google-visualization-orgchart-node{
    background: -webkit-gradient(linear, left top, left bottom, from(#0192439e), to(#019243)) !important;
    border: 2px solid #547061 !important;
    color: white !important;
}

.google-visualization-orgchart-table * {
    padding: 5px !important;
}

.google-visualization-orgchart-lineleft {
    border-left: 1px solid #31363c !important;
}

.google-visualization-orgchart-linebottom {
    border-bottom: 1px solid #31363c !important;
}
/** Gallery Archive Details **/
.detail-card {
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.detail-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-image img {
    width: 50%;
    height: auto;
    transition: transform 0.3s ease;
}

.detail-image:hover img {
    transform: scale(1.02);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.badge {
    font-size: 14px;
    padding: 5px 10px;
    font-weight: 500;
}

.archive-details {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.archive-details p {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.archive-details p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.archive-content {
    line-height: 1.8;
}

.main-content {
    flex: 1;
}

/** Homepage **/
footer {
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

footer a {
    color: #e6f4ea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    display: none;
}

.floating-btn.show {
    display: block;
}

html {
    scroll-behavior: smooth;
}

.custom-padding {
    padding-top: 0rem !important;
    padding-bottom: 5rem !important;
}

.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.go-to-top:hover {
    background-color: #017a38;
    transform: translateY(-2px);
}

.news-img-container {
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .news-img {
    transform: scale(1.08);
}

.carousel-caption {
    bottom: 34rem;
}

/** Product & Resources **/
.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: white;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    min-height: 2.2rem;
    line-height: 1.1rem;
}

.product-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    line-height: 1.2rem;
}

.pagination {
    justify-content: center;
}

.filter-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-section h5 {
    margin-bottom: 15px;
}

.filter-section ul {
    list-style: none;
    padding: 0;
}

.filter-section ul li a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.filter-section ul li a:hover {
    color: #017a38;
}

.product-grid>div[class*='col-'] {
    display: flex;
}