/* Fix for navbar positioning and banner overlap */

/* CSS Custom Properties for Theme Colors */
:root {
    --theme-color: #002351;
    --theme-color-light: #003a6b;
    --theme-color-dark: #001a2e;
    --accent-color: #0056ae;
    --background-color: #f4f4f4;
    --text-color: #333333;
}

/* Ensure the main content has proper top margin when navbar is fixed */
body {
    padding-top: 0;
}

/* Fix the section that contains the slider to account for fixed navbar */
.section-navbar-1.fixed + section,
.section-navbar-1.fixed ~ section:first-of-type {
    margin-top: 70px; /* Adjust based on navbar height */
}

/* Ensure proper z-index hierarchy */
.section-navbar-1 {
    z-index: 1030 !important; /* Higher than Bootstrap's default modal z-index */
}

.slider-1 {
    position: relative;
    z-index: 1;
}

/* Fix for Revolution Slider positioning */
.rev_slider_wrapper {
    margin-top: 0 !important;
}

/* Ensure smooth scrolling override doesn't interfere with native scroll */
html {
    scroll-behavior: smooth;
}

/* Fix any potential overflow issues */
html, body {
    overflow-x: hidden;
}

/* Ensure proper navbar height and consistency */
.section-navbar-1.fixed {
    min-height: 60px;
    line-height: 60px;
}

.section-navbar-1.fixed .container > div {
    line-height: normal;
}

/* Mobile navigation fixes */
.au-navbar-mobile {
    display: none;
    background-color: #fff;
    width: 100%;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.au-navbar-mobile.show {
    display: block !important;
}

/* Override any conflicting styles from main.css */
@media (max-width: 991px) {
    .au-navbar-mobile {
        float: none !important;
        width: 100% !important;
    }
}

/* Mobile navigation fixes */
.au-navbar-mobile {
    display: none;
    background-color: var(--theme-color, #002351);
    width: 100%;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.au-navbar-mobile.show {
    display: block !important;
}

/* Override any conflicting styles from main.css */
@media (max-width: 991px) {
    .au-navbar-mobile {
        float: none !important;
        width: 100% !important;
    }
}

/* Ensure mobile menu items are visible with theme colors */
.navbar-mobile-1 ul.au-navbar-menu {
    background-color: var(--theme-color, #002351);
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-mobile-1 ul.au-navbar-menu li a {
    color: #fff !important;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-mobile-1 ul.au-navbar-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff !important;
}

/* Mobile dropdown menus */
.navbar-mobile-1 ul.au-navbar-menu li.drop .drop-menu {
    background-color: var(--theme-color-dark, #001a2e);
}

.navbar-mobile-1 ul.au-navbar-menu li.drop .drop-menu li a {
    padding-left: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background-color: var(--theme-color-light);
}

/* Hamburger button visibility */
.hamburger {
    display: block !important;
    z-index: 10000;
}

/* Ensure mobile header is visible on mobile devices */
@media (max-width: 991px) {
    .hidden-tablet-landscape-up {
        display: block !important;
    }
    
    .hidden-tablet-landscape {
        display: none !important;
    }
}

/* Modern Rounded Button Styles - Site-wide Updates */
.au-btn,
.btn,
button[type="submit"],
input[type="submit"],
input[type="button"] {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid transparent !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    line-height: 1.2 !important;
}

/* Primary Button Styles */
.au-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--theme-color, #002351) 0%, #004080 100%) !important;
    color: #fff !important;
    border-color: var(--theme-color, #002351) !important;
}

.au-btn-primary:hover,
.btn-primary:hover,
.au-btn-primary:focus,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--theme-color-dark, #001a2e) 0%, #002951 100%) !important;
    color: #fff !important;
    border-color: var(--theme-color-dark, #001a2e) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 35, 81, 0.3) !important;
}

/* White/Light Button Styles */
.au-btn-white,
.btn-light,
.btn-outline-primary {
    background: #fff !important;
    color: var(--theme-color, #002351) !important;
    border-color: var(--theme-color, #002351) !important;
}

.au-btn-white:hover,
.btn-light:hover,
.btn-outline-primary:hover,
.au-btn-white:focus,
.btn-light:focus,
.btn-outline-primary:focus {
    background: var(--theme-color, #002351) !important;
    color: #fff !important;
    border-color: var(--theme-color, #002351) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 35, 81, 0.3) !important;
}

/* Border Button Styles */
.au-btn-border,
.au-btn-border-light {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

.au-btn-border:hover,
.au-btn-border-light:hover,
.au-btn-border:focus,
.au-btn-border-light:focus {
    background: #fff !important;
    color: var(--theme-color, #002351) !important;
    border-color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Large Button Styles */
.au-btn-large,
.btn-lg {
    padding: 16px 40px !important;
    font-size: 18px !important;
    min-height: 56px !important;
}

/* Small Button Styles */
.btn-sm {
    padding: 8px 20px !important;
    font-size: 14px !important;
    min-height: 36px !important;
}

/* Block Button Styles */
.au-btn-block,
.btn-block {
    width: 100% !important;
    justify-content: center !important;
}

/* Disabled Button Styles */
.au-btn.disabled,
.au-btn:disabled,
.btn:disabled,
button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Success/Secondary Button Styles */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    border-color: #1e7e34 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}

/* Warning Button Styles */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(135deg, #e0a800 0%, #dc6609 100%) !important;
    border-color: #d39e00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
}

/* Icon spacing in buttons */
.au-btn i,
.btn i {
    margin-right: 8px !important;
}

.au-btn i:last-child,
.btn i:last-child {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* Button groups */
.btn-group .btn,
.btn-group .au-btn {
    border-radius: 0 !important;
}

.btn-group .btn:first-child,
.btn-group .au-btn:first-child {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.btn-group .btn:last-child,
.btn-group .au-btn:last-child {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Social media buttons */
.social-item-1 a,
.btn-social {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.social-item-1 a:hover,
.btn-social:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Form submit buttons specific styling */
form button[type="submit"],
form input[type="submit"] {
    background: linear-gradient(135deg, var(--theme-color, #002351) 0%, #004080 100%) !important;
    color: #fff !important;
    border-color: var(--theme-color, #002351) !important;
    font-size: 16px !important;
    padding: 14px 35px !important;
}

form button[type="submit"]:hover,
form input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--theme-color-dark, #001a2e) 0%, #002951 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 35, 81, 0.4) !important;
}

/* Modern Footer Styles */
.modern-footer {
    position: relative;
    overflow: hidden;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--theme-color, #002351) 0%, #004080 100%);
    padding: 40px 0;
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-input {
    border-radius: 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.newsletter-btn {
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    background: #fff !important;
    color: var(--theme-color, #002351) !important;
    border: 2px solid #fff !important;
}

.newsletter-btn:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Main Footer Content */
.main-footer-content {
    background: linear-gradient(135deg, #001122 0%, var(--theme-color-dark, #001a2e) 50%, #001122 100%);
    position: relative;
}

.main-footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 86, 174, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 86, 174, 0.08) 0%, transparent 50%);
}

.top-footer {
    position: relative;
    z-index: 2;
}

.footer-logo {
    height:75px;
}

/* Footer Typography */
.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0056ae, #004080);
    border-radius: 2px;
}

.footer-description {
    line-height: 1.7;
    font-size: 15px;
}

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

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color, #0056ae);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.footer-link:hover {
    color: #fff !important;
    padding-left: 5px;
}

.footer-links li:hover::before {
    color: #fff;
    transform: translateX(3px);
}

/* Contact Info */
.contact-info .contact-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-color, #0056ae), #004080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 86, 174, 0.3);
}

.contact-icon i {
    color: #fff;
    font-size: 14px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-color, #0056ae), #004080);
    border-color: var(--accent-color, #0056ae);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 174, 0.4);
}

/* Certification Badges */
.cert-badges .badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--theme-color, #002351) !important;
    transition: all 0.3s ease;
}

.cert-badges .badge:hover {
    background: #fff !important;
    transform: scale(1.05);
}

/* Bottom Footer */
.border-top-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom-left p {
    font-size: 14px;
    line-height: 1.6;
}

.separator {
    margin: 0 10px;
    opacity: 0.5;
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link-small:hover {
    color: #fff !important;
}

.footer-link-small::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color, #0056ae);
    transition: width 0.3s ease;
}

.footer-link-small:hover::after {
    width: 100%;
}

/* Color Utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-accent {
    color: var(--accent-color, #0056ae) !important;
}

/* Back to Top Button Enhancement */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--theme-color, #002351), var(--accent-color, #0056ae));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 35, 81, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 35, 81, 0.5);
    background: linear-gradient(135deg, var(--accent-color, #0056ae), var(--theme-color, #002351));
}

.back-to-top i {
    font-size: 16px;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 30px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links-inline {
        justify-content: center !important;
        margin-top: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
