*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* style.css for S3apps - Azure DevOps inspired */
body {
    padding-top: 65px; /* Adjust to your navbar height */
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f8;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;  /* Keeps it in place */
    top: 0;          /* Positions at top */
    left: 0;         /* Positions at left edge */
    width: 100%;     /* Full width */
    z-index: 1000;   /* Above other content */
    background: #0867d2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0 24px;
    min-height: 64px; /* adjust as needed */
}



.navbar-logo {
    width: 154px;
    height: 64px;
    margin-right: 18px;
    filter: drop-shadow(0 2px 8px #0867d2) brightness(1.15) contrast(1.2);    
}

/* Nav Bar ends*/




/* Nav Bar ends
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0867d2;
    color: #fff;
    padding: 0 40px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: relative;
    border-bottom: 2px solid #E2E2E1;
}
*/

.navbar-left {
    display: flex;
    align-items: center;
    color: #fff ;
    font-size: 1.5rem;
    font-weight: bold;        
}

.navbar-logo {
    width: 40px;
    height: 40px;
    margin-right: 14px;
}

.navbar-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin-right: 40px;
    text-shadow: 0 2px 8px rgba(124,58,237,0.10);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
    /*   
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    z-index: 2;
*/

}

.navbar-links > a,
.navbar-links .dropbtn {
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 1.08rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.navbar-links > a:hover,
.navbar-links .dropbtn:hover,
.navbar-links > a:focus,
.navbar-links .dropbtn:focus {
    background: #154c79;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.15);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #154c79;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(124,58,237,0.18);
    border-radius: 10px;
    padding: 8px 24px;
    z-index: 10;
    flex-direction: row;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.wide-dropdown {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.dropdown-content.wide-dropdown {
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap;           / * Allow columns to wrap to next line */
    gap: 32px;
    max-width: 90vw;           /* Prevent dropdown from exceeding viewport width */
    min-width: 320px;
    overflow-x: auto;
    box-sizing: border-box;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;          /* Minimum width for readability */
    flex: 1 1 180px;           /* Allow columns to shrink/grow */
    box-sizing: border-box;
}

.dropdown-content a {
    color: #fff;
    padding: 8px 0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background: #0867d2;
    color: #fff;
}



.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.navbar-right a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    background: #0867d2;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(124,58,237,0.10);
}

.navbar-right a:hover {
    background: #abdbe3;
    color: #232336;
}

/* ... style for main code... */

.main-wrapper {
    margin-top: 0.1px;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100%;
    gap: 0; /* Remove gap between containers */
   
}

.container {
    flex: 0 0 90%;
    background: #ffffff;
    margin-right: 0px;
    margin-left: 0px;
    border-radius: 0px 0 0 0px;
    box-shadow: 0 0px 0px rgba(124,58,237,0.10);
    
    color: #000000;
    min-height: 400px;
padding: 2px 2px 2px 2px;
overflow-x: auto; /* Only here for table scrolling */

} 
.ads-container {
    flex: 0 0 1%;
    background: #ffffff;
    border-radius: 0 1px 1px 0;
    box-shadow: 0 1px 1px rgba(124,58,237,0.10);
    /* color: #000000; */
    
    color: #ffffff;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-right: 0px; 
}

.ad-box {
    
    background: #ffffff;
    text-align: center;
}


/* Responsive adjustments */


@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        gap: 0;
    }
    .container, .ads-container {
        flex: 1 1 100%;
        min-width: 0;
        margin-bottom: 18px;
    }    
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 12px;
    }
    .navbar-left, .navbar-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .navbar-links {
        position: static;
        left: unset;
        transform: unset;
        margin: 12px 0;
    }
}


/**********          blog content         ***********/

.blog-all-content {
    display: flex;
    margin-bottom: 1px; /* Add some spacing between blog posts */
}

.blog-all-text {
    width: 85%; /* Set width of text div */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-all-image {
    width: 15%; /* Set width of image div */
    display: flex;
    justify-content: center;
    align-items: center;	
}

.blog-all-image img {
    height: 70%;
    width: 100%;
    object-fit: cover; /* Ensures the image covers the entire div while maintaining aspect ratio */
    display: block; /* Ensures no extra space at the bottom of the image */
	border:1px groove;
}




.blog-detail-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    max-height: 700px; /* Prevents image from being too tall */
    object-fit: contain; /* Show full image without cropping */
    display: block;
}

p {
	justify-content: center;
}

/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **/
        /* Set style for Services objects * /
/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **/

.blog-services-image {
    position: relative;
    width: 100%;
    height: 800px; /* or your preferred banner height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

}

.blog-services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Show the full image, not cropped */
    object-position: center;
    display: block;
    background: #f5f7fa;   /* Optional: matches banner background */
}

.blog-services-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(0,0,0,0.45); /* semi-transparent for readability */
    color: #fff;
    padding: 18px 28px;
    border-radius: 10px;
    text-align: left;
    z-index: 2;
}

.blog-services-description {
    padding: 32px 0 0 0;
}

/** -------------------------------------------------------------- **/

.blog-services-content {
    display: flex;
    margin-bottom: 1px; /* Add some spacing between blog posts */
}

.blog-services-text {
    width: 80%; /* Set width of text div */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
 




/** -------------------------------------------------------------- **/

/** -------------------------------------------------------------- **/

/** -------------------------------------------------------------- **/


/* Styles for the main blog grid container */
.blog-grid-list {
    display: grid; /* Activate CSS Grid */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    /* auto-fill: automatically creates columns
       minmax(200px, 1fr): each column is at least 200px wide, but can grow to fill space */
    gap: 30px; /* Space between grid items (both rows and columns) */
    max-width: 1200px; /* Maximum width for your grid */
    margin: 0 auto; /* Center the grid */
    padding: 20px; /* Some padding around the content */
}

/* Styles for each individual blog item in the grid */
.blog-grid-item {
    display: flex;
    flex-direction: column; /* Stack image, then title, then read more */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures rounded corners apply to image if it's full width */
    text-align: center; /* Center the title and read more text */
}

.blog-grid-image-container {
    /* Set a fixed aspect ratio or height for images to keep grid items consistent */
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio (e.g., if width is 400px, height is 300px) */
    /* Alternative: height: 250px; If you prefer a fixed height */
    position: relative;
    background-color: #e0e0e0; /* Placeholder background */
}

.blog-grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit without distortion */
    display: block;
    /* Optional: If you want rounded top corners only: */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    background-color: #e0e0e0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.blog-grid-content {
    padding: 15px; /* Padding around the title and read more link */
    flex-grow: 1; /* Allows content to take up remaining space if image has fixed height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes read more to bottom if content height varies */
}

.blog-grid-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25em; /* Adjust as needed */
}

.blog-grid-read-more {
    margin-top: auto; /* Pushes this element to the bottom if parent is flex column */
    margin-bottom: 0;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block; /* Allows padding/margin if needed */
    margin-top: 5px; /* Small space above the link */
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Optional: If you want a separator after the hr tag in base.html */
hr {
    margin-bottom: 1px; /* Space below the hr */
}
