/* Modern Homepage Overrides */

/* Override old banner styles */
.main-top {
    background: none !important;
    min-height: auto !important;
}

.style-banner {
    padding-top: 0 !important;
}

/* Ensure header works with new hero */
.headder-top {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease;
}

.headder-top.scrolled {
    background: rgba(0, 63, 92, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation improvements */
#logo a {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

nav ul li a {
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}



/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Section spacing adjustment */
.section-padding {
    padding: 60px 0 !important;
}

/* Remove gap between hero and about section */
#about {
    padding-top: 0 !important;
    margin-top: -50px !important;
}

/* About section enhancement */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Stats section enhancement */
.stats-section {
    background: linear-gradient(135deg, #003f5c 0%, #0077b6 100%) !important;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/b3.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .headder-top {
        padding: 0.5rem 1rem !important;
    }

    #logo a {
        font-size: 1.5rem !important;
    }



    .toggle {
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 5px !important;
        padding: 8px 12px !important;
        color: white !important;
    }

    [id^=drop]:checked+ul {
        background: rgba(0, 63, 92, 0.95) !important;
        backdrop-filter: blur(20px);
        border-radius: 10px !important;
        margin-top: 10px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Loading animation for hero elements */
.hero-content>* {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-notice {
    animation-delay: 0.2s;
}

.hero-text {
    animation-delay: 0.4s;
}

.hero-search {
    animation-delay: 0.6s;
}

.scroll-indicator {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003f5c 0%, #0077b6 50%, #00b4d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    position: relative;
    margin-bottom: 2rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(45deg, #fff, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cursor {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00b4d8;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.loading-spinner {
    margin: 2rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #003f5c 0%, #0077b6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/b3.jpg') center/cover no-repeat;
    opacity: 0.05;
    z-index: 1;
}

.footer-main {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

.footer-section {
    height: 100%;
}

.footer-logo .footer-brand {
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #fff, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.footer-logo .footer-brand:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.footer-title {
    color: #00b4d8;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-contact .contact-item i {
    width: 20px;
    color: #00b4d8;
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.footer-contact .contact-details h6 {
    color: #00b4d8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.footer-contact .contact-details address,
.footer-contact .contact-details a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.footer-contact .contact-details a:hover {
    color: #00b4d8;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #00b4d8;
    text-decoration: none;
    padding-left: 10px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #00b4d8;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 8px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00b4d8;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

.newsletter-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(45deg, #e55a2b, #e8851a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.social-title {
    color: #00b4d8;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover {
    background: #3b5998;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.youtube:hover {
    background: #ff0000;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #00b4d8;
    text-decoration: none;
}

.back-to-top {
    background: rgba(0, 180, 216, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-btn {
        border-radius: 25px;
        width: 100%;
    }
}

/* Enhanced accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles */
.search-input:focus,
.btn-hero-primary:focus,
.btn-hero-secondary:focus,
.search-btn:focus {
    outline: 3px solid rgba(255, 193, 7, 0.6) !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
    }

    .hero-title {
        -webkit-text-fill-color: white !important;
        color: white !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .hero-content>*,
    .scroll-indicator a,
    .btn-hero-primary,
    .btn-hero-secondary,
    .search-btn {
        animation: none !important;
        transition: none !important;
    }
}