/*
Theme Name: Nisarg Child
Theme URI: https://www.falgunithemes.com/downloads/nisarg/
Template: nisarg
Author: Falguni Desai
Author URI: https://www.falgunithemes.com
Description: Nisarg is a new fully responsive and translation ready theme that allows you to create stunning blogs and websites. Theme is well suited for travel, photography, recipe, design, art, personal and any other creative websites and blogs. The theme is developed using Bootstrap 3 that makes it mobile and tablets friendly. It has various options in WordPress Customizer to change look of the theme. Theme customizer can be used to add your own header image of flexible height, background image, to set background color, header text color and accent color.
Tags: flexible-header,two-columns,right-sidebar,theme-options,custom-colors,custom-background,custom-header,custom-menu,featured-images,post-formats,sticky-post,translation-ready,rtl-language-support,threaded-comments
Version: 1.91
Updated: 2024-11-10 17:37:09

*/

.site-content-fullwidth {
  float: left;
  width: 100%;
}

.entry-content  {
    text-align: left !important; 
}

/* --- UPDATED HEADER STYLING (H4) --- */
.db-table-heading h4 {
    margin-top: 20px;
    font-size: 1.3em;
    margin-left: 5px;
    color: #34917F;
}


/* Targets the Data Table Headers & Source Header */
.db-table-heading, 
.source-header {
    font-size: 1.2em !important;      /* Larger Font */
    color: #005f73 !important;        /* Dark Blue-Green (Teal) */
    margin-top: 20px !important;      /* More space above */
    margin-bottom: 0 !important;      /* Keep attached to table below */
    padding: 15px 15px !important;    /* Slightly more internal padding */
    
    /* Keep the light background structure */
    background: #f8f9fa;
    border-bottom: 2px solid #005f73; /* Match border to text color */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

/* Fix: Remove the top margin for the VERY first table in a column */
/* (So it aligns perfectly with the top of the other column) */
.col-md-6 .db-table-wrapper:first-child .db-table-heading {
    margin-top: 0 !important;
}

/* Updates the wrapper to ensure borders look right with new headers */
.db-table-wrapper {
    border: 1px solid #e1e4e8; /* Soft grey border */
    border-top: none; /* Let the header handle the top border */
    margin-bottom: 30px; /* Space between tables */
    border-radius: 4px;
    overflow: hidden;
}

/* --- PHOTO SIZE CONTROLS --- */

.db-top-photo {
    text-align: center;
    margin-bottom: 30px;
    
    padding: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.constrained-img {
    /* 1. Mobile Responsive */
    max-width: 80%; 
    height: auto; 
    
    /* 2. Maximum Limits for Desktop */
    max-height: 550px; /* Stops vertical photos from taking over the screen */
    width: auto;       /* Maintains aspect ratio */
    display: inline-block;
    
    /* Optional: Smooth corners */
    border-radius: 2px;
}

.db-caption {
    color: #ccc;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* --- HOMEPAGE SEARCH BOX STYLES --- */

.archive-search-box {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 40px;
}

.search-box-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #005f73;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 10px;
}

/* 1. A-Z Filter Bar */
.alpha-filter {
    margin-bottom: 25px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
}

.alpha-label {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
}

.alpha-links a {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s;
}

.alpha-links a:hover, 
.alpha-links a.active {
    background: #005f73;
    color: #fff;
    border-color: #005f73;
}

/* 2. Search Controls (Flexbox) */
.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    height: 42px; /* Force consistent height */
}

/* Buttons */
.btn-group {
    flex: 0 0 auto; /* Don't grow */
    display: flex;
    gap: 10px;
}

.btn-search {
    background: #d33;
    color: white;
    border: none;
    padding: 0 25px;
    height: 42px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-search:hover {
    background: #b00;
}

.btn-reset {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #777;
    text-decoration: underline;
    height: 42px;
}

/* Recent Header */
.results-header {
    margin-bottom: 25px;
    border-left: 5px solid #005f73;
    padding-left: 15px;
}
.results-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}