/* Custom CSS for Landing Page */

/* Apply dynamic colors */
:root {
    --theme-color: #4361ee;
    --secondary-color: #7239ea;
}

/* Override theme colors */
.btn-primary {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--theme-color) !important;
}

.bg-primary {
    background-color: var(--theme-color) !important;
}

.nav-bottom-line .navbar-nav .nav-link:before {
    background-color: var(--theme-color);
}

/* Service Box */
.service-box {
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 40px;
    color: var(--theme-color);
    margin-bottom: 20px;
}

.service-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Blog Box */
.blog-box {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.blog-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-img {
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.blog-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-box:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    margin-bottom: 10px;
}

.blog-meta span {
    font-size: 12px;
    color: #777;
    margin-right: 15px;
}

.blog-meta span i {
    margin-right: 5px;
    color: var(--theme-color);
}

.blog-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-content h4 a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-content h4 a:hover {
    color: var(--theme-color);
}

.read-more {
    color: var(--theme-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Contact */
.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    color: var(--theme-color);
    margin-right: 20px;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: auto;
}

/* Form Validation Styles */
.input-field.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.77-.8-.77-.8.77.8.77zm1.48-4.97L6.06 4.3 5.28 5.07l-1.48-1.48-.8.77 2.28 2.28 3.54-3.54-.77-.77z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.input-field.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color, #333);
}

/* Alert Styles */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.9375rem 1.25rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Footer */
.footer-style-1 {
    background-color: #222;
    color: #fff;
    padding: 80px 0 30px;
}

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

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--theme-color);
}

.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--theme-color);
}

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

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

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info p i {
    color: var(--theme-color);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    margin: 0;
    color: #ccc;
}

/* Responsive Logo */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* Language Switcher */
.language-switcher {
    margin-left: 15px;
}

.language-switcher .dropdown-menu {
    min-width: 120px;
}

.language-switcher .dropdown-item {
    padding: 8px 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .service-box,
    .blog-box {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 35px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .footer-widget {
        margin-bottom: 30px;
    }
}
