/*
Theme Name: TUV Universal
Author: Amir Namvar
Description: Theme for the TUV Universal website. English, left-to-right.
Version: 1.2
Text Domain: tuvuniversal
*/

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

body {
    margin: 0;
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    background: #ffffff;
    direction: ltr;
    text-align: left;
}

a { color: #0f719e; text-decoration: none; }
a:hover { color: #0b506f; }

img { max-width: 100%; height: auto; }
.container { width: min(1170px, calc(100% - 30px)); margin: 0 auto; }

/* Top bar + logo */
#sp-top-bar {
    border-bottom: 1px solid #eee;
    height: 105px;
    display: flex;
    align-items: center;
    background: #fff;
}
#sp-top-bar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#sp-logo a { display: inline-block; }
#sp-logo img.sp-default-logo { height: 72px; width: auto; display: block; }
#sp-logo h1 { margin: 0; font-size: 0; }

ul.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
ul.social-icons > li a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: #f5f8ff; color: #444;
    box-shadow: 3px 3px 0 0 rgba(68,68,68,0.2);
}
ul.social-icons > li a:hover { color: #fff; background: #485884; }

.top-search { display: flex; align-items: center; gap: 16px; }

/* Header / megamenu */
#sp-header {
    background-color: #0f719e;
    background-image: url("assets/menu-bg-right.png"), url("assets/menu-bg.png");
    background-position: right top, left top;
    background-repeat: no-repeat, repeat-x;
    box-shadow: inset 0 2px 0 rgba(68,68,68,0.1);
    position: relative;
    z-index: 20;
}
#sp-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 3px 3px rgba(0,0,0,0.05);
}
.sp-megamenu-parent {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.sp-megamenu-parent > li { position: relative; }
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span.nav-header {
    display: inline-block;
    padding: 0 15px;
    line-height: 51px;
    height: 51px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    cursor: pointer;
}
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span.nav-header,
.sp-megamenu-parent > li.current-item > a,
.sp-megamenu-parent > li.active > a {
    background: #ffffff;
    color: #444444 !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.sp-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    background: #0f719e;
    z-index: 30;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.sp-menu-item.sp-has-child:hover > .sp-dropdown { display: block; }
.sp-dropdown-items { list-style: none; margin: 0; padding: 8px 0; }
.sp-dropdown-items a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
.sp-dropdown-items a:hover { background: #fff; color: #444; }
#offcanvas-toggler { display: none; color: #fff; font-size: 22px; padding: 12px 0; }

/* Page title bar */
.sp-page-title {
    background: #242c42 url("/images/sub-color-patturn.png") repeat center;
    color: #fff;
    padding: 36px 0;
}
.sp-page-title h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    font-weight: 700;
}
.sp-page-title .page-subtitle { margin: 6px 0 0; opacity: 0.85; }

#sp-main-body { padding: 40px 0 60px; }
body.single #sp-main-body,
body.page #sp-main-body { background: #fafafa; }
.entry-wrap { background: #fff; padding: 28px 32px; }

/* Certificate tables: single 1px lines (overrides the old border="5" attribute). */
.entry-content { overflow-x: auto; }
.entry-content table { border-collapse: collapse !important; border-spacing: 0; border: 1px solid #0b048a !important; max-width: 100%; margin-top: 12px; margin-bottom: 12px; }
.entry-content table td,
.entry-content table th { border: 1px solid #0b048a !important; padding: 8px; vertical-align: top; }
.entry-meta { color: #888; font-size: 13px; margin-bottom: 16px; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; background: #e9e9e9; height: 420px; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s ease;
    display: flex; align-items: center;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,20,30,0.55) 0%, rgba(15,20,30,0.15) 60%, rgba(15,20,30,0.05) 100%);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-caption { position: relative; z-index: 1;
    width: min(1170px, calc(100% - 30px));
    margin: 0 auto;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.hero-caption .kicker { font-size: 18px; letter-spacing: 1px; margin-bottom: 8px; }
.hero-caption .headline { font-size: 42px; font-weight: 700; font-style: italic; margin: 0 0 12px; }
.hero-caption .lead { max-width: 560px; font-size: 16px; }

/* Home sections */
.home-section { padding: 80px 0 40px; }
.home-section.tight { padding: 15px 0 80px; }
.section-title { text-align: center; margin: 0 0 36px; }
.section-title h2 { font-size: 28px; color: #242c42; margin: 0; font-weight: 700; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.feature-box h3 { margin: 0 0 8px; font-size: 20px; font-weight: 400; color: #f7505a; }
.feature-box p { margin: 0 0 8px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.theme-band { background: #0f719e; color: #fff; padding: 50px 0; text-align: center; }
.theme-band h2 { margin: 0 0 16px; font-size: 26px; }
.btn {
    display: inline-block;
    padding: 10px 22px;
    background: #242c42;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 13px;
    border: 0;
    cursor: pointer;
}
.btn:hover { background: #0f719e; }
.btn-primary { background: #0f719e; }
.btn-primary:hover { background: #0b506f; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.price-box { background: #fff; border: 1px solid #eee; text-align: center; padding: 28px 16px; }
.price-box .plan { font-size: 20px; font-weight: 700; color: #242c42; }
.price-box .sub { color: #888; margin-bottom: 12px; }
.price-box .amount { font-size: 40px; font-weight: 700; color: #0f719e; }
.price-box .amount sub { font-size: 14px; color: #888; }
.price-box ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.price-box li { padding: 6px 0; }
.price-box li:before { content: "▸ "; color: #0f719e; }

.popular-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.popular-card { background: #fff; border: 1px solid #eee; padding: 16px; }
.popular-card h4 { margin: 0 0 8px; font-size: 16px; }
.popular-card .cat { font-size: 12px; color: #888; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.contact-form .sppb-form-group { margin-bottom: 12px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
}
.contact-note { color: #888; font-size: 13px; margin-top: 10px; }
.map-frame { width: 100%; height: 300px; border: 0; }

/* Search */
.novinsart-search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; }
.novinsart-search-form label { font-weight: 700; }
.novinsart-search-form input[type="text"] { padding: 6px 10px; min-width: 220px; font-size: 1rem; }
.novinsart-search-form button { padding: 6px 16px; background: #0f719e; color: #fff; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.novinsart-search-error { color: #a40000; }
.novinsart-search-results { padding-left: 20px; }

.header-search { display: flex; align-items: center; gap: 6px; }
.header-search input { padding: 4px 8px; border: 1px solid #ddd; width: 160px; }
.header-search button { padding: 4px 10px; background: #0f719e; color: #fff; border: 0; cursor: pointer; font-size: 12px; }

/* Footer */
#sp-footer { background: #1a1f2b; color: #fff; padding: 20px 0 28px; }
#sp-footer .container { border-top: 1px solid #444; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#sp-footer .sp-copyright { color: #959595; text-align: left; }
#sp-footer .sp-copyright a { color: rgba(255,255,255,0.9); }
#sp-footer .footer-logo img { height: 48px; width: auto; display: block; }

.offcanvas-menu {
    display: none;
    position: fixed; inset: 0 auto 0 0;
    width: 280px; background: #242c42; color: #fff;
    z-index: 50; padding: 24px 16px;
    overflow: auto;
}
.offcanvas-menu.is-open { display: block; }
.offcanvas-menu a, .offcanvas-menu span { color: #fff; display: block; padding: 8px 0; }
.offcanvas-menu .close-offcanvas { float: right; color: #fff; font-size: 20px; }
.offcanvas-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40;
}
.offcanvas-backdrop.is-open { display: block; }

@media (max-width: 900px) {
    .feature-row, .split-2, .pricing, .contact-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 280px; }
    .hero-caption .headline { font-size: 28px; }
    .sp-megamenu-parent { display: none; }
    #offcanvas-toggler { display: inline-block; }
    #sp-top-bar { height: auto; padding: 12px 0; }
    #sp-logo img.sp-default-logo { height: 52px; }
    #sp-footer .container { flex-direction: column; }
}

/* Elementor: "Elementor Full Width" template keeps header and footer, content spans the page. */
body.tuv-full-width #sp-main-body { padding: 0; background: transparent; }
.tuv-full-width-inner { width: 100%; }
