/**
 * VIPASOFT - Custom Styles
 */

/* Elektra Text Pro Font Family */
@font-face {
    font-family: 'Elektra Text Pro';
    src: url('../fonts/ElektraTextPro-Regular.woff2') format('woff2'),
         url('../fonts/ElektraTextPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Elektra Text Pro';
    src: url('../fonts/ElektraTextPro-Bold.woff2') format('woff2'),
         url('../fonts/ElektraTextPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Elektra Text Pro';
    src: url('../fonts/ElektraTextPro-Italic.woff2') format('woff2'),
         url('../fonts/ElektraTextPro-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Elektra Text Pro';
    src: url('../fonts/ElektraTextPro-BoldItalic.woff2') format('woff2'),
         url('../fonts/ElektraTextPro-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #0098c8;
    --primary-light: #20aad8;
    --secondary: #5cb030;
    --accent: #f47920;
    --dark: #3a3a3a;
    --light: #f8f9fa;
    --gray: #6c757d;
}

/* Bootstrap overrides */
.bg-primary { background-color: var(--primary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }
.text-primary { color: var(--primary) !important; }

/* General */
body {
    font-family: 'Elektra Text Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Topbar */
.topbar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.topbar a {
    color: rgba(255,255,255,0.8);
}

.topbar a:hover {
    color: #fff;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 16px;
}

.language-switcher .current-lang {
    font-weight: 600;
    color: #fff;
}

/* Header */
.header-mainmenu {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-mainmenu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-mainmenu.sticky .logo-theme img {
    max-height: 40px;
}

.logo-theme img {
    max-height: 50px;
}

.logo-mobile {
    display: none;
}

@media (max-width: 991px) {
    .logo-mobile {
        display: none !important;
    }
    .logo-desktop {
        display: block !important;
    }
    .logo-theme img {
        max-height: 45px;
        width: auto;
    }
}

.main-menu .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 10px 15px;
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 0;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    .nav-item.dropdown > .dropdown-menu {
        display: none;
    }
    .nav-item.dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.header-information {
    display: flex;
    align-items: center;
    float: right;
    margin-left: 30px;
}

.header-information .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.header-information .title {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

.header-information .text {
    font-weight: 600;
    color: var(--dark);
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 480px;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 152, 200, 0.55) 0%, rgba(32, 170, 216, 0.4) 100%);
    z-index: 1;
}

.hero-slider .carousel-item .container {
    position: relative;
    z-index: 2;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    z-index: 3;
}

.hero-slider .carousel-indicators {
    z-index: 3;
}

.hero-slider .carousel-caption {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    text-align: left;
    padding-top: 100px;
    max-width: 600px;
}

.hero-slider .subtitle {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-slider .title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-slider .description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 380px;
    }
    .hero-slider .carousel-caption {
        padding-top: 80px;
    }
    .hero-slider .title {
        font-size: 32px;
    }
}

/* Sections */
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

/* Advantages */
.advantage-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-box .icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.advantage-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Services */
.service-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s;
    text-align: center;
}

.service-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-box .icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.service-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-link {
    color: var(--primary);
    font-weight: 500;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.section-cta h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Benefits */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li {
    padding: 10px 0;
    font-size: 16px;
}

.benefits-list li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Testimonials */
.testimonial-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-box .quote-icon {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.testimonial-box .content {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

.testimonial-box .author {
    display: flex;
    align-items: center;
}

.testimonial-box .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-box .author h5 {
    margin: 0;
    font-size: 16px;
}

.testimonial-box .author span {
    font-size: 13px;
    color: var(--gray);
}

/* Posts */
.post-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.post-box .post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-box .post-content {
    padding: 20px;
}

.post-box .post-date {
    font-size: 13px;
    color: var(--gray);
}

.post-box h4 {
    font-size: 18px;
    margin-top: 10px;
}

.post-box h4 a {
    color: var(--dark);
}

.post-box h4 a:hover {
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo img {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
}

.footer-menu a:hover {
    color: #fff;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info li i {
    width: 20px;
    margin-right: 10px;
    color: var(--secondary);
}

.contact-info a {
    color: rgba(255,255,255,0.7);
}

.contact-info a:hover {
    color: #fff;
}

.working-hours {
    list-style: none;
    padding: 0;
}

.working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    font-size: 14px;
}

.copyright a {
    color: rgba(255,255,255,0.7);
}

/* Back to top */
.return-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.return-top.visible {
    opacity: 1;
    visibility: visible;
}

.return-top:hover {
    background: var(--primary-light);
    color: #fff;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 152, 200, 0.55), rgba(0, 152, 200, 0.55)), url('../images/bg-header.jpg') center/cover no-repeat;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: #fff;
}

/* Contact Page */
.contact-info-box {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.contact-form-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 150px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Pricing Box */
.pricing-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.pricing-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-box.featured {
    border: 2px solid var(--primary);
}

.pricing-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pricing-header h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.price .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.price .currency {
    font-size: 16px;
    color: var(--gray);
}

.price .period {
    font-size: 14px;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 15px;
}

.pricing-features li i {
    color: var(--secondary);
    margin-right: 8px;
}

/* Product Box */
.product-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.product-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-box .product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-box .product-content {
    padding: 25px;
}

.product-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Partner Box */
.partner-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.partner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.partner-box .partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-box .partner-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

img.partner-logo {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

img.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Pricing Table */
.pricing-table th,
.pricing-table td {
    padding: 15px 20px;
}

/* Single Post */
.post-single .post-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-single .post-meta span {
    font-size: 14px;
}

.post-single .post-body {
    font-size: 16px;
    line-height: 1.8;
}

.post-single .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    color: var(--dark);
}

.sidebar-menu a:hover {
    color: var(--primary);
}

.sidebar-menu a i {
    margin-right: 8px;
    color: var(--primary);
}

/* Page Content */
.page-content {
    font-size: 16px;
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Reset Bootstrap navbar inside header */
.header-mainmenu .navbar {
    padding: 0;
}

.header-mainmenu .navbar-toggler {
    border: none;
    background: transparent;
    color: var(--dark);
    padding: 4px;
    font-size: 24px;
    line-height: 1;
}

.header-mainmenu .navbar-toggler:focus {
    box-shadow: none;
}

.header-mainmenu .navbar-collapse {
    justify-content: flex-end;
}

/* Mobile language switcher */
.mobile-lang-switcher {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 5px;
}

.mobile-lang-switcher .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .header-information {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }

    .footer-main {
        padding: 40px 0;
    }
}
