/* Table Layout for PDFs */
.pds-archive table {
    width: 100%;
    border-collapse: collapse;
}

.company-header, .action-header{
    text-align: center !important;
}
.action-header{
    width: 35%;
}

/* Header styling */
.pds-archive th {
    text-align: left;
    padding: 10px;
    font-weight: bold;
    color: #8893a4b5;
    font-size: 13px;
}
thead tr{
    border-bottom: 1px solid #ddd;
}

/* Table cell styling */
.pds-archive td {
    padding: 10px;
    text-align: center;
    border: none; /* Remove borders */
}

/* Aligning columns properly */
.pds-archive td:first-child {
    text-align: left; /* Left align for file name column */
}

.pds-archive td:nth-child(2),
.pds-archive td:nth-child(3) {
    text-align: center; /* Center align company and actions */
}

/* Ensure no background colors on rows or cells */
.pds-archive table tr:hover td {
    background-color: transparent !important;
}
.view-pdf-icon{
    margin: 0px !important;
}
.btn-view{
    border-radius: 50% !important;
}
/* Remove any background or focus on table rows */
.pds-archive tr,
.pds-archive td {
    background-color: transparent !important; /* No background on any table rows or cells */
}

/* Remove all table borders */
.pds-archive table, .pds-archive th, .pds-archive td {
    border: none !important; /* Ensure no borders */
    color: #8893a4b5;
}

/* Row styling (ensure hover and selected rows have no background) */
.pdf-list-table tbody tr:hover {
    background-color: #f6f7f8 !important
}
.pdf-list-table tbody tr:hover .pdf-title{
    color: #85b725;
}
.pdf-list-table tbody tr {
    background-color: transparent !important; /* No background on rows */
}

/* PDF title styling */
.pdf-title {
    font-size: 16px;
    color: #31538f;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.pdf-title:hover {
    color: #85b725;
}

/* Action button styling */
.pdf-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    justify-content: flex-end;
}
/* Change the icon to white on hover */
.pdf-actions .btn-view:hover svg,
.pdf-actions .btn-download:hover svg {
    fill: #FFF; /* Change icon color to white on hover */
}

.pdf-actions .btn-view:hover,
.pdf-actions .btn-download:hover {
    border: 1px solid #334d66;
    background-color: #334d66;
    color: #FFF;
}

/* Remove focus/hover background for buttons */
.pdf-actions .btn-view:focus, .pdf-actions .btn-download:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* End of table-specific styles */

/* Style for the PDF archive page */
.pds-archive {
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}
.pdf-list{
	margin: 0px !important; 
}
/* Style for the header: Title and Filter alignment */
.pds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

/* Title style */
.pds-header h1 {
    display: none;
    font-size: 36px;
    color: #334d66;
    font-weight: bold;
    font-family: sans-serif;
}
.tagsdiv-company{
    display: none !important;
}
/* Style for the PDF list */
/* Updated PDF list styling */
.pdf-list {
    list-style: none;
    padding-left: 0;
}

.pdf-item {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 10px;
}

#pdf-list-container{
    background: white;
    padding: 10px 20px;
    border: 1px solid #80808030;
    border-radius: 10px;
}
.pdf-item .pdf-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Buttons for View and Download */
.pdf-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.pdf-actions .btn-view,
.pdf-actions .btn-download {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #31538f;
    background-color: #FFF;
    color: #31538f;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pdf-actions .btn-view:hover,
.pdf-actions .btn-download:hover {
    border: 1px solid #334d66;
    background-color: #334d66;
    color: #FFF;
}


/* Use provided SVG for PDF icon */
.pdf-icon {
    width: 30px;
    height: auto;
    margin-right: 10px;
    fill: #334d66;
}
.pdf-icon-upload{
    width: 40px;
    height: auto;
    margin-right: 3px;
    margin-left: 10px;
    fill: #334d66;
}

/* Pagination container */
.pagination-pdfs ul {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

/* Pagination links (non-active) */
.pagination-pdfs ul li a,
.pagination-pdfs ul li span.current {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd !important;
    text-decoration: none !important;
    color: #333 !important;
    background-color: #fff !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    vertical-align: middle; /* Align all pagination items vertically */
}

/* Hover effect for pagination links */
.pagination-pdfs ul li a:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* Active page style */
.pagination-pdfs ul li span.current {
    background-color: #334d66 !important; /* Green background */
    color: white !important; /* White text for active page */
    border: 1px solid #334d66 !important; /* Border matches background */
    border-radius: 5px !important; /* Rounded corners */
    vertical-align: middle; /* Align active item with others */
}

/* Optional: Rounded corners for pagination links */
.pagination-pdfs ul li a,
.pagination-pdfs ul li span.current {
    border-radius: 5px !important;
}

/*style upload pdf in admin pannel*/

.pdf-upload-box {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.pdf-upload-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.pdf-upload-box .button {
    margin-bottom: 10px;
}

.pdf-upload-box .pdf-link {
    margin-top: 10px;
}

.pdf-upload-box .pdf-link a {
    color: #0073aa;
    text-decoration: none;
}

.pdf-upload-box .pdf-link a:hover {
    text-decoration: underline;
}

.pdf-search{
   display: none;
}


/*style for select filter*/

/* Form wrapper styling */
.company-filter {
    display: flex !important;
    justify-content: center !important;
    padding-bottom: 10px !important;
}

/* Style for the Select2 dropdown */
.select2-container {
    width: 100% !important;
    max-width: 250px !important; /* Fixed width for the dropdown */
    min-width: 250px !important; /* Fixed width for the dropdown */
}

/* Ensure the selected text doesn't shrink the box */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Adjust the height of the selection box */
.select2-selection {
    display: flex !important;
    align-items: center !important;
    height: 50px !important; /* Height */
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    padding: 5px 15px !important; /* Padding */
}

/* Placeholder and selected text styling */
.select2-selection__rendered {
    font-size: 16px !important;
    color: #333 !important;
    line-height: 50px !important; /* Match line-height with box height */
}

/* Clear button styling */
.select2-selection__clear {
    color: #999 !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    line-height: 50px !important; /* Match line-height with box height */
}

/* Dropdown arrow styling */
.select2-selection__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-right: 10px !important;
    border-left: 1px solid #ddd !important;
    height: 50px !important; /* Make sure the height matches */
}

.select2-selection__arrow b {
    border-color: #999 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 6px 6px 0 6px !important; /* Adjust the size and visibility */
    height: 0 !important;
    width: 0 !important;
    display: inline-block !important;
    margin-left: 5px !important;
}

/* Hover and focus effects */
.select2-container--default .select2-selection--single:hover {
    border-color: #888 !important;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #66afe9 !important;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6) !important;
}

/* Dropdown list styling */
.select2-dropdown {
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Dropdown option styling */
.select2-results__option {
    padding: 12px !important;
    font-size: 16px !important;
    color: #333 !important;
    cursor: pointer !important;
}

.select2-results__option:hover {
    background-color: #f0f0f0 !important;
    color: #111 !important;
}

/* Highlighted/active option */
.select2-results__option--highlighted {
    background-color: #334d66 !important;
    color: #fff !important;
}

/* Fixed width on all dropdown options to avoid shrinking */
.select2-results__option,
.select2-selection__rendered {
    width: 100% !important;
}

.select2-container--open .select2-dropdown{
    min-width: 250px;
/*top: -18px;    */
 /*left: -5px !important;*/
}
/* Remove border and outline from the search input inside the dropdown */
.select2-container .select2-search--dropdown .select2-search__field {
    border: 0.5px solid grey !important;
    outline: none !important;
    box-shadow: none !important;

}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    right: 20px !important;
}

#company-select{
    width: -webkit-fill-available !important;
}
.action-column{
    padding-right: 2% !important;
}
/* Responsive design */
@media (max-width: 768px) {
    .action-column{
        padding-right: unset;
    }
    .select2-container {
        max-width: 100% !important;
    }

    .select2-selection__rendered {
        font-size: 14px !important;
    }
    #pdf-list-container{
    overflow: scroll; 
    -webkit-overflow-scrolling: touch;
    }
.action-header{
    width: unset;
}
}
/* Responsive design */
@media (max-width: 468px) {
    .pdf-icon{
       width: 20px; 
    }
   .pdf-title{
       font-size: 14px;
   }
   .view-pdf-icon, .download-pdf-icon{
       width: 13px !important;
   }
   .pds-archive table{
       width: 550px;
   }
    .pdf-details{
        padding-top: 15px;
    }
}



.solar-videos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.solar-video-item {
    flex: 1 1 calc(100% - 40px); /* Full width on small screens */
    max-width: 100%; /* Prevent exceeding the container width */
    min-width: 300px; /* Increased minimum width */
    background-color: #ffffff; /* White background for each item */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects with easing */
    cursor: pointer; /* Make the card appear clickable */
    position: relative; /* For placing "Watch video" button */
}

.solar-video-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.solar-video-item iframe {
    width: 100%; /* Ensure iframe scales with its container */
    height: auto; /* Adjust height dynamically */
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    border: none;
    display: block; /* Avoid inline gaps */
}

.video-description {
    padding: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.5; /* Improved readability */
    text-align: left;
    max-height: 100px; /* Initially show around 200 words (adjust if necessary) */
    overflow: hidden; /* Hide overflowed text */
    margin-bottom: 10px;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Smooth expand/collapse effect */
}

.video-description.expanded {
    max-height: 1000px; /* Large enough to show all content */
    padding-bottom: 20px; /* Extra padding when expanded */
}

.see-more {
    display: inline-block;
    margin: 10px 0px;
    padding-left: 15px; /* Align "Read more" to the left */
    font-size: 14px;
    color: #334D66; /* Link color */
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
    transition: color 0.3s ease; /* Smooth color change on hover */
    z-index: 2; /* Ensure it's above card click area */
    position: relative;
}

.see-more:hover {
    color: #85B725; /* Darker shade for hover */
}

.watch-video {
    position: absolute;
    bottom: 7px;
    right: 15px;
    background: #334D66;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    z-index: 2; /* Above card click area */
    transition: background 0.3s ease;
}

.watch-video:hover {
    background: #85B725;
    color: white;
}

/* Adjustments for medium screens */
@media (min-width: 600px) {
    .solar-video-item {
        flex: 1 1 calc(50% - 40px); /* Two columns with more width */
        max-width: calc(50% - 40px);
    }
}

/* Adjustments for large screens */
@media (min-width: 900px) {
    .solar-video-item {
        flex: 1 1 calc(40% - 40px); /* Two and a half columns */
        max-width: calc(40% - 40px);
    }
}

/* Adjustments for extra-large screens */
@media (min-width: 1200px) {
    .solar-video-item {
        flex: 1 1 calc(30% - 40px); /* Three columns with larger cards */
        max-width: calc(30% - 40px);
    }
}



.solar-faqs-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-width: 800px;
}

.solar-faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.solar-faq-item:last-child {
    border-bottom: none;
}

.solar-faq-question {
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solar-faq-answer {
    margin-top: 10px;
    padding-left: 25px;
    font-size: 0.95em;
    color: #555;
}

.kw-icon-opened > svg > path{
    stroke:#85B725;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px
}
