/* Safety Style to prevent horizontal overflow */
body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
} 

/* Configure Custom Fonts */
@font-face {
font-family: 'Revans Medium';
src: url('fonts/revans-medium-webfont.woff2') format('woff2'),
        url('fonts/revans-medium-webfont.woff') format('woff');
font-weight: 500; /* Adjust if the font has a specific weight */
font-style: normal;
font-display: swap; /* This is a best practice for performance */
}




body {
    font-family: "Rubik", sans-serif;
    /* AdminLTE already adds padding-top, adjust if necessary * /
    max-width: 1440px; */
    /* background-color: #000; Sets the background color to black */
    margin: 0 auto; /* Centers the block-level element horizontally */
    
    /* background-image: url('images/homepage/bg-texture.png'); /* Placeholder image URL * /
    background-repeat: repeat; */
}

.main-footer {
    background-color: #7B983B;
    border-top: 0;
}

.main-footer {
    background-color: #7B983B;
}

/* Custom CSS to ensure the main background is white */
.wrapper, .content-wrapper {
    background-color: white !important;
}

/* Ensure the full-width colored sections fill their containers */
.full-width-block {
    /* FIX: Remove all padding from the block container */
    padding: 0 !important; 
    /* FIX: Remove margin-bottom to make blocks touch if needed, 
    or keep it for vertical separation */
    margin-bottom: 0 !important; 
    
    /* Ensure the row inside the block is also edge-to-edge */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* If you want the content (h3) inside to be centered and have internal padding,
you can add padding here, or to the col-12 inside the row. */
.full-width-block .col-12 {
    padding: 20px 15px; /* Add internal padding for text readability */
}

/* Style for text inside the colored blocks */
.full-width-block h3 {
    color: white;
    text-align: center;
    margin: 0;
}



h1 {
    font-family: 'Revans Medium', sans-serif;
    font-size: 54px;
}

h2 {
    font-family: 'Revans Medium', sans-serif;
    font-size: 45px;
}

h3 {
    font-family: 'Revans Medium', sans-serif;
    font-size: 36px
}

h4 {
    font-family: 'Revans Medium', sans-serif;
}

h5 {
    font-family: 'Revans Medium', sans-serif;
}

a {
    color: #93b35a;
}

a:hover {
    color: #5c7a33;
}



/* Overrides the p-10px class ONLY on large screens (768px and up) */
@media (max-width: 991px) {

    .full-width-block .col-12 {
        padding: 0 !important;
    }

    .footer-logo {
        /* Set the new maximum width for mobile */
        max-width: 100px !important; /* Adjust the value (e.g., 100px) as needed */
        
        /* Ensure the width property doesn't conflict, although 'max-width' should take precedence */
        width: 100% !important; 
    }


    .footer-text {
        font-size: 0.8rem;

    }

    .p-md-80 {
        padding: 80px !important;
    }

    .pl-md-80 {
        padding-left: 80px !important;
    }

    .col-md-12 .pl-md-80 {
        padding-left: 80px !important;
    }

    .pl-md-160 {
        padding-left: 160px !important;
    }

    .pl-md-200 {
        padding-left: 200px !important;
    }    
}

/* Overrides the p-10px class ONLY on large screens (992px and up) */
@media (min-width: 992px) {
    .p-lg-80 {
        padding: 80px !important;
    }

    .pl-lg-80 {
        padding-left: 80px !important;
    }

    .col-lg-6 .pl-lg-80 {
        padding-left: 80px !important;
    }

    .pl-lg-160 {
        padding-left: 160px !important;
    }

    .pl-lg-200 {
        padding-left: 200px !important;
    }
}


/* Overrides the p-10px class ONLY on extra large screens (1200px and up) */
@media (min-width: 1200px) {
    .p-xl-80 {
        padding: 80px !important;
    }

    .pl-xl-80 {
        padding-left: 80px !important;
    }

    .pl-xl-160 {
        padding-left: 160px !important;
    }
    
    .col-md-6 .pl-xl-160 {
        padding-left: 160px !important;
    }

    .pl-xl-200 {
        padding-left: 200px !important;
    }

}
/* Helper Styles */

/*
* Make the row a flex container with stretch alignment
* to ensure both columns have the same height.
*/
.row.same-height {
    display: flex;
    align-items: stretch;
}


/* 5 Column Grid, used by list of Ministries */
.col-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (min-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* New XXL breakpoint (e.g., >= 1400px) for max-width 1360px */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1360px;
  }
}

/* Back to Top */
.back-to-top {
    /* Positioning */
    position: fixed; /* Keeps the button in the same place when scrolling */
    bottom: 100px;    /* 20px from the bottom of the screen */
    right: 20px;     /* 20px from the right of the screen */
    
    /* Appearance */
    background-color: #7d965d; /* Primary blue color (or your brand color) */
    color: white; 
    
    /* Make it a perfect circle */
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    
    /* Center the arrow vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    
    text-decoration: none;
    
    /* Subtle shadow for depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    
    /* Visibility Control */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    
    z-index: 1000;
}

/* Class added by JavaScript when the user scrolls down */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top .arrow-up {
    /* Base structure */
    width: 20px; 
    height: 20px; 
    
    /* Borders create the two lines of the V-shape */
    border-top: 5px solid white; 
    border-right: 5px solid white; 
    
    /* Rotate to point up and create the caret effect */
    transform: rotate(-45deg); 
    
    /* Fine-tune vertical position */
    margin-top: 10px;
    margin-left: 0; 
    margin-right: 0;
    margin-bottom: 0;
}




/* Custom Modal Styles */
/* Custom CSS to make the modal cover the entire screen */
.modal-fullscreen-custom {
    /* Full width and height of the viewport */
    width: 100vw;
    height: 100vh;
    margin: 0; 
    max-width: none; 
    padding: 8; 
    overflow: hidden;
}

.modal-fullscreen-custom .modal-content {
    /* Ensure the content also fills the dialog space */
    height: 100%;
}

.modal-fullscreen-custom .modal-body {
    /* Calculate remaining space: 100% of modal-content height MINUS header/footer height.
       Using 'calc()' is the most reliable way. */
    /* height: calc(100vh - 100px); /* Adjust 100px based on the total height of your header/footer/padding */
    /* max-height: calc(100vh - 100px); /* Set max-height to the same value */
    overflow-y: auto; /* Enable scrolling for the body content */
}



/* Custom Modal CSS to position the close button */
.custom-modal-close {
    position: relative; 
    
    /* Position it in the top right corner */
    top: 15px;      
    right: 15px;    

    width: 32px; 
    height: 32px;
    
    /* Ensure it is visible above the content */
    z-index: 1050; 
    
    /* Remove default Bootstrap/AdminLTE styles that might interfere */
    padding: 0;
    margin: 0;
    opacity: 1; 
    background-color: transparent; 
    border: none; 
    cursor: pointer;
    
    /* Set the default image as a background image on the button */
    background-image: url('../images/closew.png');
    background-size: cover; 
    background-repeat: no-repeat;
}

.custom-modal-close.right0{
    right: 0px;    
}

.custom-modal-close.right64{
    right: -64px;    
}

@media (max-width: 767.98px) {
.custom-modal-close.right64{
    right: -64px;    
}
}

/* Optional: To make the close button image appear larger and clearer */
.custom-modal-close img {
    display: none;
}

/* Change the background image on hover */
.custom-modal-close:hover {
    background-image: url('../images/closey.png');
}

.custom-modal-close.black{
    background-image: url('../images/closeb.png');
}

/* Change the background image on hover */
.custom-modal-close.black:hover {
    background-image: url('../images/closey.png');
}

.custom-modal-close.green{
    background-image: url('../images/closeg.png');
}

/* Change the background image on hover */
.custom-modal-close.green:hover {
    background-image: url('../images/closey.png');
}


/* Custom Modal CSS to position the return button */
.custom-modal-return {
    position: absolute; 
    
    /* Position it in the top right corner */
    top: 40px; 
    right: 80px;

    width: 66px; 
    height: 52px;
    
    /* Ensure it is visible above the content */
    z-index: 1050; 
    
    /* Remove default Bootstrap/AdminLTE styles that might interfere */
    padding: 0;
    margin: 0;
    opacity: 1; 
    background-color: transparent; 
    border: none; 
    cursor: pointer;

    /* Default Image: Use background-image */
    background-image: url('../images/return.png'); 
    background-size: 66px 52px;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 0.2s ease-in-out;
}
/* Hover Effect: Change the background image */
.custom-modal-return:hover {
    background-image: url('../images/returny.png'); 
}

/* CRITICAL: Set the modal header as the positioning context */
.modal-header {
    position: relative;
}




input
{
    font-size:12px;
}
input[type="text"]
{
    font-size:12px;	
}
.form-control
{
    font-size:12px !important;
}


a[href]:after {
    content: "" !important;
}


.fa-CCT:before {
    font-family: Courier;
    font-weight: bold;
    font-size: 14px;
    content: "CCT";
}

.required:after {
    content:"*";
    color: RED;
}


