/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ==========================================================================
   id06 Custom Overrides — loaded after flatsome.css
   Modern enhancements, color scheme fixes, and component polish
   ========================================================================== */

/* === Base Enhancements === */
body {
    font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

a { transition: color 0.2s ease, background-color 0.2s ease; }

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: "Roboto Slab", sans-serif;
    line-height: 1.3;
}

/* === Layout Polish === */
.container { max-width: 1050px; }

.row { row-gap: 15px; }

.col-inner { position: relative; }

/* === Header Enhancements === */
.header-main {
    background-color: #0a0201;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#logo img {
    max-height: 90px;
    width: auto;
}

.header-bottom {
    background-color: #017c34;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-bottom-nav > li > a {
    transition: all 0.2s ease;
}

.header-bottom-nav > li > a:hover {
    color: #f6f603;
    background: rgba(0,0,0,0.15);
}

/* === Search Form === */
.searchform {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    overflow: hidden;
    padding: 4px;
}

.search-field {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
}

.search-field::placeholder { color: rgba(255,255,255,0.6); }

.ux-search-submit {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.ux-search-submit:hover { color: #f6f603; }

/* === Button Polish === */
.button {
    transition: all 0.2s ease;
    font-family: "Roboto Slab", sans-serif;
    font-weight: 700;
}

.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.button.alert {
    background-color: #ec0303;
    border-color: #ec0303;
}

.button.alert:hover {
    background-color: #c50202;
    border-color: #c50202;
}

/* === Slider Enhancements === */
.slider-wrapper { position: relative; width: 100%; }

.slider {
    overflow: hidden;
}

.slider .img has-hover {
    border-radius: 8px;
    overflow: hidden;
}

.img-inner {
    overflow: hidden;
    border-radius: 8px;
}

.img.has-hover:hover .img-inner img {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.img-inner img {
    transition: transform 0.3s ease;
}

/* === Banner Enhancements === */
.banner {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.banner-layers {
    min-height: 300px;
}

/* === Testimonial Box === */
.testimonial-box {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.testimonial-image {
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.testimonial-image img {
    border-radius: 50%;
}

.testimonial-name {
    color: #fff;
    font-weight: 700;
}

.testimonial-company {
    color: rgba(255,255,255,0.7);
}

/* === Star Rating === */
.star-rating {
    position: relative;
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    margin-bottom: 8px;
}

.star-rating::before {
    content: "★★★★★";
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
}

.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffd700;
}

.star-rating span::before {
    content: "★★★★★";
    letter-spacing: 2px;
}

/* === Accordion (FAQ) === */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: background 0.2s;
}

.accordion-item:hover {
    background: rgba(255,255,255,0.12);
}

.accordion-title {
    color: #ffffff;
    font-weight: 700;
    transition: background 0.2s;
}

.accordion-title:hover {
    background: rgba(255,255,255,0.05);
}

.accordion-title.active {
    background: rgba(104,10,198,0.2);
}

.accordion-title .toggle {
    transition: transform 0.3s;
}

.accordion-title.active .toggle {
    transform: rotate(180deg);
}

.accordion-inner {
    color: rgba(255,255,255,0.9);
}

/* === Blog Post Cards === */
.box {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.box.has-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.image-cover {
    overflow: hidden;
    background: #f0f0f0;
}

.image-cover img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box.has-hover:hover .image-cover img {
    transform: scale(1.05);
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #680ac6;
}

.is-divider {
    height: 2px;
    margin: 10px 0;
    background: linear-gradient(90deg, transparent, rgba(104,10,198,0.3), transparent);
}

/* === Section Title === */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    line-height: 1.3;
}

.section-title b {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #680ac6, transparent);
    max-width: 100px;
}

/* === Footer Enhancements === */
.footer-wrapper {
    background-color: #003328;
    color: #ffffff;
}

.footer-wrapper ul li a {
    color: #ffffff;
    transition: color 0.2s;
}

.footer-wrapper ul li a:hover {
    color: #f6f603;
}

.absolute-footer {
    background-color: #002a20;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* === Social Icons === */
.social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #680ac6;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #5608a3;
    transform: translateY(-2px);
}

/* === Back to Top === */
.back-to-top {
    background: rgba(104, 10, 198, 0.9);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.back-to-top:hover {
    background: #680ac6;
    color: #fff;
}

/* === FTOC Widget === */
#ftwp-trigger {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

#ftwp-trigger:hover {
    background: #fff;
    transform: scale(1.05);
}

#ftwp-contents {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

#ftwp-list .ftwp-anchor {
    transition: all 0.15s;
}

#ftwp-list .ftwp-anchor:hover {
    color: #00A368;
    background: rgba(0,163,104,0.08);
}

#ftwp-list .ftwp-active .ftwp-anchor,
#ftwp-list .ftwp-active:hover .ftwp-anchor {
    color: #fff;
    background: #680ac6;
}

.ftwp-heading {
    scroll-margin-top: 100px;
}

/* === Blockquote === */
blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #680ac6;
    background: rgba(104, 10, 198, 0.05);
    font-style: italic;
    color: #333;
    border-radius: 0 8px 8px 0;
}

/* === WP Caption === */
.wp-caption img {
    border-radius: 8px;
}

.wp-caption-text {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* === Loading Spinner === */
.loading-spin {
    display: inline-block;
    border: 3px solid rgba(104,10,198,0.3);
    border-top-color: #680ac6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spin.large { border-width: 4px; }

.loading-spin.dark {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Row Slider (sidebar blog posts) === */
.row-slider {
    scroll-snap-type: x mandatory;
    gap: 15px;
}

.row-slider > * {
    scroll-snap-align: start;
}

.row-slider::-webkit-scrollbar { height: 6px; }
.row-slider::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.row-slider::-webkit-scrollbar-thumb { background: #680ac6; border-radius: 3px; }

/* === Responsive Enhancements === */
@media (max-width: 549px) {
    body { font-size: 15px; }

    .section { padding: 20px 0; }
    .section-title { font-size: 1.4em; }
    .section-title b { max-width: 50px; }

    .banner-layers { min-height: 250px; padding: 20px; }

    .absolute-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .copyright-footer { justify-content: center; }

    .button { padding: 8px 16px; font-size: 0.85em; }
}

/* === Print === */
@media print {
    #header, .back-to-top, #ftwp-container, #main-menu, .absolute-footer,
    .slider-wrapper, .banner, .mobile-nav { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
