/* ====================================
   GIZ Sector Detail Page Styles
   ==================================== */

/* ======= Main Container Sections ======= */
.giz-sector-header {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.giz-production-systems {
    background-color: #ffffff;
    padding: 60px 0;
}

.giz-featured-resources {
    background-color: #ffffff;
    padding: 60px 0;
}

.giz-analytics {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* ======= Header Section ======= */
.giz-section-header {
    text-align: center;
}

.giz-sector-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 15px;
}

.giz-sector-description-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.giz-sector-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.giz-sector-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.giz-sector-btn-primary {
    background-color: #3b97f5;
    color: white;
    border: none;
}

.giz-sector-btn-outline {
    background-color: transparent;
    color: #3b97f5;
    border: 1px solid #3b97f5;
}

.giz-sector-btn:hover {
    background-color: #2a85d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 151, 245, 0.3);
}

.giz-thumbnail-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.giz-thumbnail-wrapper img {
    max-width: 100%;
    height: auto;
}

/* ======= Gallery Grid ======= */
.giz-gallery-grid {
    margin-top: 30px;
}

.giz-gallery-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}

.giz-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(59, 151, 245, 0.20);
}

.giz-gallery-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.giz-gallery-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.giz-gallery-item:hover .giz-gallery-thumb img {
    transform: scale(1.05);
}

/* ======= Production Systems Section ======= */
.giz-production-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.giz-production-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0;
}

.giz-view-all-link {
    color: #3b97f5;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.giz-view-all-link:hover {
    color: #2a85d9;
}

.giz-production-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.giz-production-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d2d;
    min-width: 60px;
    margin-right: 20px;
}

.giz-production-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0;
}

.giz-production-systems .giz-production-name {
    transition: color 0.3s ease;
}

.giz-production-item:hover .giz-production-name {
    color: #3b97f5;
}

/* ======= Featured Resources Section ======= */
.giz-featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 40px;
}

.giz-resource-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.giz-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.giz-resource-image-wrapper {
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.giz-resource-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giz-resource-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.giz-resource-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    min-height: 48px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.giz-resource-link {
    color: #3b97f5;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.giz-resource-card:hover .giz-resource-link {
    color: #2a85d9;
}

.giz-view-all-btn {
    background-color: #3b97f5;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.giz-view-all-btn:hover {
    background-color: #2a85d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 151, 245, 0.3);
}

/* ======= Analytics Section ======= */
.giz-analytics-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 40px;
}

.giz-analytics-grid {
    margin-bottom: 40px;
}

.giz-chart-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    background-color: #ffffff;
}

.giz-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.giz-chart-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 0;
}

.giz-chart-menu-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.giz-chart-placeholder {
    height: 280px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.giz-chart-text {
    font-size: 0.9rem;
    color: #999;
}

.giz-analytics-btn {
    background-color: #3b97f5;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.giz-analytics-btn:hover {
    background-color: #2a85d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 151, 245, 0.3);
}

.giz-analytics-center {
    text-align: center;
}

/* ======= Utilities ======= */
.giz-text-center {
    text-align: center;
}

.giz-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ======= Responsive Design ======= */
@media (max-width: 1200px) {
    .giz-sector-title {
        font-size: 2.2rem;
    }

    .giz-production-title,
    .giz-featured-title,
    .giz-analytics-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .giz-sector-title {
        font-size: 2rem;
    }

    .giz-production-title,
    .giz-featured-title,
    .giz-analytics-title {
        font-size: 1.6rem;
    }

    .giz-production-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .giz-view-all-link {
        font-size: 0.9rem;
    }

    .giz-production-item {
        margin-bottom: 25px;
    }

    .giz-production-number {
        font-size: 1.2rem;
        min-width: 50px;
        margin-right: 15px;
    }

    .giz-production-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .giz-sector-header {
        padding: 40px 0;
    }

    .giz-production-systems,
    .giz-featured-resources,
    .giz-analytics {
        padding: 40px 0;
    }

    .giz-sector-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .giz-production-title,
    .giz-featured-title,
    .giz-analytics-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .giz-sector-description-text {
        font-size: 0.9rem;
    }

    .giz-gallery-thumb {
        height: 200px;
    }

    .giz-production-header {
        margin-bottom: 30px;
    }

    .giz-production-item {
        margin-bottom: 20px;
    }

    .giz-production-number {
        font-size: 1.1rem;
        min-width: 45px;
        margin-right: 12px;
    }

    .giz-production-name {
        font-size: 1.1rem;
    }

    .giz-resource-card {
        margin-bottom: 20px;
    }

    .giz-chart-card {
        margin-bottom: 20px;
    }

    .giz-sector-buttons {
        gap: 10px;
    }

    .giz-sector-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .giz-sector-header {
        padding: 30px 0;
    }

    .giz-production-systems,
    .giz-featured-resources,
    .giz-analytics {
        padding: 30px 0;
    }

    .giz-sector-title {
        font-size: 1.5rem;
    }

    .giz-production-title,
    .giz-featured-title,
    .giz-analytics-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .giz-sector-description-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .giz-gallery-thumb {
        height: 180px;
    }

    .giz-production-number {
        font-size: 1rem;
        min-width: 40px;
        margin-right: 10px;
    }

    .giz-production-name {
        font-size: 1rem;
    }

    .giz-chart-card {
        padding: 15px;
    }

    .giz-chart-placeholder {
        height: 220px;
    }

    .giz-resource-body {
        padding: 15px;
    }

    .giz-view-all-btn,
    .giz-analytics-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }

    .giz-sector-buttons {
        gap: 8px;
        margin-bottom: 30px;
    }

    .giz-sector-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}

/* ======= Print Styles ======= */
@media print {
    .giz-sector-header,
    .giz-production-systems,
    .giz-featured-resources,
    .giz-analytics {
        page-break-inside: avoid;
    }

    .giz-sector-btn,
    .giz-view-all-btn,
    .giz-analytics-btn {
        display: none;
    }
}
