html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


.navbar {
    background-color: #004AAD;
    padding: 1rem 2rem;
}

.navbar-nav .nav-item .nav-link {
    color: white;
    padding: 0.5rem 1rem;
    position: relative;
}

/* Remove any existing hover states */
.navbar-nav .nav-item .nav-link:hover {
    color: white;
}

/* Style only the active page */
.navbar-nav .nav-item .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Remove any other highlight states */
.navbar-nav .nav-item .nav-link:focus,
.navbar-nav .nav-item .nav-link:active {
    color: white;
    background-color: transparent;
}

/* Accessibility button styles */
.btn-light {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

/* Language switcher styles */
.btn-group .btn.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Logo Grid Styles */
.logo-grid {
    padding: 1rem 0;
    background-color: white;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.logo-item {
    width: 300px; /* Fixed width for consistency */
    height: 150px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-time-large {
    width: 750px; /* Fixed width for consistency */
    height: 350px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* This will maintain aspect ratio within the fixed container */
}

/* Stats Grid Styles */
.stats-grid {
    background: linear-gradient(90deg, 
        rgba(0, 32, 96, 1) 0%, 
        rgba(0, 74, 173, 1) 100%);
    padding: 1rem 0;
}

.stats-item {
    padding: 1rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle i {
    font-size: 2rem;
    color: #004AAD;
}

.stats-value {
    color: white;
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-item {
        margin-bottom: 2rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
}

/* Split Section Styles */
.split-section {
    position: relative;
    width: 100%;
}

.content-side {
    background-color: white;
    padding: 4rem;
}

.content-wrapper {
    margin-left: auto;
    margin-right: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
    font-weight: normal;
}

.section-text {
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.section-text p {
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.check-progress {
    background-color: #004AAD;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 4px;
}

.check-progress:hover {
    background-color: #003c8a;
}

.image-side {
    position: relative;
    min-height: 600px; /* Reduced from 1200px to be more reasonable */
    background: transparent;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2); /* White overlay */
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-side {
        padding: 2rem;
    }
    
    .content-wrapper {
        margin-right: 0;
    }
    
    .image-side {
        min-height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Project Showcase Styles */
.project-showcase {
    position: relative;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

.project-showcase .carousel,
.project-showcase .carousel-inner,
.project-showcase .carousel-item {
    height: 100%;
}

.project-showcase .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-showcase .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0); /* Removed the white overlay by setting opacity to 0 */
}

.showcase-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 50px;
}

.showcase-title {
    position: absolute;
    top: 25px;
    left: 50px;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 600px;
}

.showcase-text {
    max-width: 600px;
    margin-top: 60px;
    color: #000;
    line-height: 1.5;
    text-align: justify;
}

.see-more {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #004AAD;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.see-more:hover {
    background-color: #003c8a;
}

/* Custom Carousel Indicators */
.custom-indicators {
    bottom: 25px;
}

.custom-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #004AAD !important;
    opacity: 0.5;
    margin: 0 8px !important;
    border: none !important;
}

.custom-indicators button.active {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .showcase-title {
        font-size: 1.75rem;
        top: 15px;
        left: 30px;
        max-width: 90%;
    }

    .showcase-text {
        margin-top: 50px;
        margin-left: 0;
        margin-right: 0;
        font-size: 0.9rem;
        text-align: justify;
        max-width: 90%;
    }

    .showcase-content {
        padding: 0 30px;
    }

    .see-more {
        bottom: 50px;
    }

    .custom-indicators {
        bottom: 15px;
    }
}

/* Footer Styles */
.main-footer {
    background-color: rgba(10, 77, 171, 1) !important;
    
    padding: 1rem 0;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.copyright {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.follow-text {
    margin-right: 1rem;
    font-size: 0.9rem;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.8;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Page Styles */
.container-fluid {
    padding: 0 2rem;
}

h1 {
    color: #004AAD;
    margin-bottom: 2rem;
}

/* Add spacing for the main content area */
main {
    min-height: calc(100vh - 140px); /* Adjust based on your header/footer height */
}

/* Font settings */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ensure headings also use Inter */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Optional: Set different font weights for different elements */
h1 { font-weight: 600; }
h2 { font-weight: 500; }
p { font-weight: 400; }

/* Dashboard Map Table Section Styles */
.dashboard-map-section {
    padding: 3rem 0;
    background-color: white;
}

.map-container {
    border: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container img {
    max-width: 100%;
    max-height: 600px; /* Adjust this value as needed */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Make the columns equal height */
.dashboard-map-section .row {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-map-section .col-md-5,
.dashboard-map-section .col-md-7 {
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container img {
        max-height: 400px; /* Smaller height on mobile */
    }
}

/* Table Styles */
.table {
    margin-bottom: 1rem;
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td, .table th {
    padding: 1rem;
    vertical-align: middle;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #004AAD;
}

.page-link:hover {
    color: #003c8a;
}

.page-item.active .page-link {
    background-color: #004AAD;
    border-color: #004AAD;
}

/* Progress Data Section Styles */
.progress-data-section {
    padding: 3rem 0;
    background-color: white;
}

.charts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-wrapper {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    height: auto;
}

.chart-wrapper img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.download-link {
    color: #004AAD;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-link:hover {
    color: #003c8a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .charts-container {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .chart-wrapper {
        padding: 1rem;
    }
}

/* Portal FAQ Section Styles */
.portal-faq-section {
    padding: 3rem 0;
    background-color: white;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-question {
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-answer {
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
}

.faq-answer p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-faq-section {
        padding: 2rem 0;
    }
    
    .faq-answer {
        padding: 1.5rem;
    }
}

/* Reports Section Styles */
.reports-section {
    padding: 3rem 0;
    background-color: white;
}

.reports-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Report Item Styles */
.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
}

.report-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.report-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.report-icon {
    font-size: 3.5rem;
    color: #004AAD;
    min-width: 40px;
}

.report-details {
    flex: 1;
}

.report-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000;
}

.report-description {
    margin-bottom: 0;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 800px;
}

.read-more {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #004AAD;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1.5rem;
}

.read-more:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #003c8a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .report-description {
        white-space: normal;
    }
    
    .read-more {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Grants Section Styles */
.grants-section {
    padding: 3rem 0;
    background-color: white;
}

.grants-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual Grant Item Styles */
.grant-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #e7f1ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.grant-item:hover {
    background-color: #d4e5ff;
}

.grant-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #004AAD;
    min-width: 40px;
}

.grant-content {
    flex: 1;
}

.grant-title {
    font-size: 1rem;
    font-weight: 500;
    color: #004AAD;
    margin-bottom: 0.25rem;
}

.grant-description {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination Styles */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 4px;
    color: #004AAD;
    border: none;
    padding: 0.5rem 1rem;
}

.pagination .page-item.active .page-link {
    background-color: #004AAD;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grant-item {
        padding: 1rem;
    }
    
    .grant-description {
        white-space: normal;
    }
}

/* PowerBI Embed Styles */
.powerbi-container {
    position: relative;
    padding: 2rem 0;
    width: 100%;
    height: 800px;
}

.powerbi-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .powerbi-container {
        height: 500px;
    }
}

/* Language Switcher Styles */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.language-selector .nav-link {
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.9rem;
}

.language-selector .divider {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.25rem;
}

/* Hover effect */
.language-selector .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Active language */
.language-selector .nav-link.active {
    font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .logo-grid {
        min-height: auto;
        padding: 2rem 0;
    }

    .logo-item img {
        max-height: 60px !important;
    }

    .logo-item-large img {
        max-width: 100% !important;
        height: auto !important;
    }

    .stats-grid {
        padding: 1rem 0;
    }

    .stats-item {
        margin-bottom: 1.5rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-circle i {
        font-size: 1.5rem;
    }

    .stats-value {
        font-size: 0.9rem;
    }

    .content-side {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-text {
        font-size: 0.9rem;
    }

    .image-side {
        min-height: 300px;
    }

    .powerbi-container {
        height: 400px;
    }

    .container-fluid {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    .footer-content {
        padding: 1rem;
    }
}

/* Custom navbar styles */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-toggler.custom-toggler {
    border-color: rgba(255,255,255,0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler.custom-toggler .bi-list {
    font-size: 1.5rem;
}

/* Mobile navbar styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar > .container-fluid {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .navbar-brand {
        margin: 0;
        flex: 1;
        justify-content: center;
    }

    .navbar-brand img {
        max-height: 32px;
        max-width: 180px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .navbar-nav .nav-link {
        color: #004AAD !important;
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(0, 74, 173, 0.1);
        color: #004AAD !important;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 74, 173, 0.05);
    }

    /* Mobile controls container */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Disclaimer styling */
.disclaimer {
    position: relative;
    transition: all 0.3s ease;
    border-color: #2B78D4 !important;
}

.disclaimer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

.disclaimer h4 {
    font-weight: 600;
    color: #2B78D4;
}

.disclaimer p {
    font-size: 1rem;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .disclaimer:hover {
        transform: none;
    }
}

/* Gallery Styles */
.gallery-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.gallery-container {
    margin-top: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.gallery-caption {
    padding: 15px;
}

.gallery-caption h5 {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    text-transform: capitalize;
}

.gallery-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-caption {
        padding: 10px;
    }
    
    .gallery-caption h5 {
        font-size: 1rem;
    }
}

/* Updated container styles for both SVG and PNG images */
.svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2; /* Ensure it's above the overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-map {
    height: 90%;
    /* max-height: 500px; */
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .svg-map {
        width: 90%; /* Slightly larger on mobile */
        max-height: 300px;
    }
    
    .image-side {
        min-height: 400px; /* Smaller height on mobile */
    }
}

@media (max-width: 480px) {
    .svg-map {
        width: 100%;
        max-height: 200px;
    }
}
* Split section enhancements */
.content-wrapper {
    height: 100%;
    overflow-y: auto;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--bs-primary);
}

.hover-effect {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Make the content side match the dashboard aesthetic */
.content-side {
    background-color: #f8f9fa;
}

/* Enhance the button */
.btn-primary.check-progress {
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: all 0.2s;
}

.btn-primary.check-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 123, 255, 0.3);
} 