/* Common Theme Styles */
:root {
    --primary-color: #00325D;
    --secondary-color: #004975;
    --primary-rgb: 21, 87, 174;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --heading-color: #1A1A1A;
    --text-color: #1e1e1e;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --font-primary: 'Roboto', sans-serif;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Section Common Styles */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.navbar-expand-lg .navbar-nav {
    width: max-content !important;
}

/* Typography */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

strong, b {
    font-weight: 700;
}

.light-text {
    font-weight: 300;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
}

/* Top Header */
.top-header {
    background: var(--primary-color);
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1001;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.company-motto {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-motto i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.quick-contacts {
    display: flex;
    gap: 20px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.quick-contact-item:hover {
    color: #fff;
    transform: translateY(-1px);
}

.quick-contact-item i {
    font-size: 12px;
}

.top-header-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link i {
    font-size: 12px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.linkedin:hover i { color: #0077b5; }
.social-link.facebook:hover i { color: #1877f2; }
.social-link.twitter:hover i { color: #1da1f2; }
.social-link.youtube:hover i { color: #ff0000; }

/* Main Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo-wrapper {
    flex-shrink: 0;
    max-width: 320px;
    transition: var(--transition);
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 70px;
    width: auto;
    transition: var(--transition);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-nav {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-direction: row;
    list-style: none;
}

.navbar-nav .menu-item {
    position: relative;
}

.navbar-nav .menu-item a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav .menu-item a:hover {
    color: var(--primary-color);
}

.navbar-nav .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: var(--transition);
}

.navbar-nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 220px;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.navbar-nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu .menu-item a {
    padding: 8px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ytp-chrome-top, .ytp-chrome-bottom {
    display: none !important;
}
.html5-video-player a {
    display: none !important;
}
.navbar-nav .sub-menu .menu-item a:hover {
    background: rgba(var(--primary-rgb), 0.04);
    padding-left: 25px;
}

/* Header Buttons */
.header-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.header-buttons .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
}

.header-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
}

.header-buttons .btn:hover::before {
    opacity: 1;
}

.header-buttons .btn span,
.header-buttons .btn i {
    position: relative;
    z-index: 1;
}

.header-buttons .btn i {
    transition: transform 0.3s ease;
}

.header-buttons .btn:hover i {
    transform: translateX(3px);
}

/* Mobile Menu Button */
.offcanvas-toggler {
    display: none;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--heading-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.toggler-icon:nth-child(1) { top: 0; }
.toggler-icon:nth-child(2) { top: 50%; transform: translateY(-50%); }
.toggler-icon:nth-child(3) { bottom: 0; }

/* Offcanvas Menu */
.offcanvas {
    width: 300px;
    background: #fff;
    border: none;
}

.offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    max-width: 220px;
}

.mobile-logo-img {
    width: 100%;
    height: auto;
}

.btn-close {
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--heading-color);
}

.btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.offcanvas-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav .menu-item {
    position: relative;
}

.mobile-nav .menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav .menu-item a:hover {
    background: rgba(var(--primary-rgb), 0.04);
}

.mobile-nav .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: var(--transition);
}

.mobile-nav .menu-item-has-children.show > a::after {
    transform: rotate(180deg);
}

.mobile-nav .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.mobile-nav .menu-item-has-children.show > .sub-menu {
    display: block;
}

.mobile-nav .sub-menu .menu-item a {
    padding-left: 30px;
    font-size: 14px;
}

.mobile-quick-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.mobile-contact-item:hover {
    color: var(--primary-color);
}

.mobile-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .navbar-nav {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .offcanvas-toggler {
        display: block;
    }

    .company-motto {
        display: none;
    }
}

@media (max-width: 767px) {
    .top-header {
        padding: 10px 0;
    }

    .quick-contacts {
        flex-direction: column;
        gap: 5px;
    }

    .quick-contact-item span {
        font-size: 13px;
    }

    .top-header-social {
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .top-header-content {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .company-info {
        justify-content: center;
    }

    .logo-wrapper {
        max-width: 240px;
    }

    .custom-logo {
        max-height: 55px;
    }

    .offcanvas {
        width: 100%;
    }
}

/* Quick CTA Section */
.quick-cta {
    background: var(--gradient-primary);
    padding: 40px 0;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.cta-content p {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

.cta-button {
    background: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Footer Styles */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
    overflow: hidden;
}

/* Footer Pattern */
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.5;
    z-index: 1;
}

.pattern-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

/* Main Footer */
.footer-main {
    position: relative;
    padding: 80px 0 50px;
    z-index: 2;
}

/* Widget Styles */
.footer-widget {
    margin-bottom: 30px;
    position: relative;
}

.widget-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.723);
}

.widget-content {
    position: relative;
}

.widget-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Info */
.footer-contact-info li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-contact-info li span {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links li a i {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
    opacity: 1;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a:hover:before {
    transform: scale(1);
}

.footer-social a.linkedin:hover i { color: #0077b5; }
.footer-social a.facebook:hover i { color: #1877f2; }
.footer-social a.twitter:hover i { color: #1da1f2; }
.footer-social a.youtube:hover i { color: #ff0000; }

/* Footer Bottom */
.footer-bottom {
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 2;
    text-align: center;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

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

.footer-bottom-links a:hover:after {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .widget-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .copyright,
    .footer-bottom-links {
        text-align: center;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top.visible {
        bottom: 20px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: -60px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    text-decoration: none;
}

.back-to-top.visible {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.2;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.back-to-top:hover::before {
    transform: scale(1.5);
}

.back-to-top i {
    font-size: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.back-to-top.scrolling-up {
    transform: translateY(-5px);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}
   
::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 10px;
}
    
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}
   
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Dropdown Menu Styles */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item.menu-item-has-children {
    padding-right: 20px;
}

.navbar-nav .nav-item.menu-item-has-children > .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item.menu-item-has-children:hover > .nav-link::after {
    transform: translateY(-50%) rotate(-180deg);
}

.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-nav .nav-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu .menu-item {
    display: block;
    padding: 0;
}

.navbar-nav .sub-menu .nav-link {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.navbar-nav .sub-menu .nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
    padding-left: 25px;
}

@media (max-width: 991px) {
    .navbar-nav .sub-menu {
        position: static;
        background: rgba(0, 0, 0, 0.02);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        display: none;
    }

    .navbar-nav .nav-item.menu-item-has-children.show > .sub-menu {
        display: block;
    }

    .navbar-nav .sub-menu .nav-link {
        padding-left: 30px;
    }

    .navbar-nav .sub-menu .nav-link:hover {
        padding-left: 35px;
    }

    .navbar-nav .nav-item.menu-item-has-children {
        padding-right: 0;
    }

    .navbar-nav .nav-item.menu-item-has-children > .nav-link::after {
        right: 15px;
    }
}