:root {
    --primary-color: #0B2545;
    --accent-color: #1ECAD3;
    --gradient-blue: #2F80ED;
    --bg-main: #FFFFFF;
    --bg-section: #F8FDFF;
    --bg-dark: #081A2F;
    --text-primary: #0B2545;
    --text-secondary: #4F6D7A;
    --text-light: #E6F7F9;
    --border-color: #D6EEF1;
    --btn-primary-bg: #1ECAD3;
    --btn-primary-text: #0B2545;
    --btn-hover: #149AA1;
    --link-hover: #2F80ED;
    --shadow-light: rgba(30, 202, 211, 0.1);
    --shadow-medium: rgba(11, 37, 69, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Modern Navigation - FIXED */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px 0;
    transition: all 0.4s ease;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(11, 37, 69, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(30, 202, 211, 0.15);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 25px rgba(11, 37, 69, 0.15);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    padding: 0;
}

/* INCREASED LOGO SIZE */
.navbar-brand img {
    height: 60px; /* Increased from 50px */
    width: auto;
    max-width: 220px; /* Increased from 200px */
    margin-right: 0;
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 4px;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 16px !important;
    border-radius: 8px;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-blue));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(30, 202, 211, 0.08);
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Enhanced Dropdown - FIXED */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 10px 35px rgba(11, 37, 69, 0.15);
    border: 1px solid rgba(30, 202, 211, 0.15);
    backdrop-filter: blur(15px);
    animation: dropdownFade 0.3s ease;
    min-width: 220px;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(30, 202, 211, 0.1), transparent);
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* Modern Footer - IMPROVED FOR MOBILE */
.footer {
    background: linear-gradient(135deg, #0c1e35 0%, #0B2545 100%);
    color: white;
    padding: 60px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-blue));
}

.footer-section {
    margin-bottom: 35px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 18px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links li a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
    font-weight: bold;
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 18px;
}

.footer-links li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-links li a i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid rgba(30, 202, 211, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info p i {
    color: var(--accent-color);
    margin-right: 12px;
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-blue));
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 202, 211, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(30, 202, 211, 0.3);
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-blue);
    transform: translateY(-5px) scale(1.1);
}

/* IMPROVED MOBILE RESPONSIVENESS - Enhanced for Navigation and Footer */
@media (max-width: 1199px) {
    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
    
    /* INCREASED LOGO SIZE FOR LARGER SCREENS */
    .navbar-brand img {
        height: 55px;
        max-width: 200px;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 8px 0;
        border-bottom: 1px solid rgba(30, 202, 211, 0.15); /* Keep desktop border */
    }
    
    /* Remove border from navbar-collapse only, not the main navbar */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: none !important; /* REMOVED BORDER HERE */
        backdrop-filter: blur(10px);
    }
    
    /* INCREASED LOGO SIZE FOR TABLET */
    .navbar-brand img {
        height: 50px;
        max-width: 180px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        margin: 5px 0;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .nav-link::before {
        bottom: 5px;
    }
    
    /* Fix for mobile dropdowns */
    .dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        border: none;
        margin-left: 8px;
        vertical-align: middle;
        float: right;
        margin-top: 5px;
    }
    
    /* FIXED MOBILE DROPDOWN CSS - Let Bootstrap handle positioning but style for mobile */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        margin: 0;
        box-shadow: 0 5px 15px rgba(11, 37, 69, 0.1);
        border: 1px solid rgba(30, 202, 211, 0.15);
        animation: none;
        min-width: auto;
        width: 100%;
        position: static; /* Removed !important to allow Bootstrap to manage show/hide */
        transform: none; /* Removed !important */
        border-radius: 0 0 8px 8px;
        margin-top: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95rem;
        margin: 0;
        border-radius: 6px;
        padding-left: 30px; /* Indent for sub-menu feel */
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer h5 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .contact-info {
        padding: 18px;
    }
}

@media (max-width: 767px) {
    /* INCREASED LOGO SIZE FOR MOBILE */
    .navbar-brand img {
        height: 45px;
        max-width: 160px;
    }
    
    .navbar-collapse {
        padding: 15px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        width: 100%;
        margin-left: 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
        text-align: left;
    }
    
    .footer h5 {
        font-size: 1.2rem;
        margin-bottom: 18px;
        text-align: left;
    }
    
    .footer h5::after {
        left: 0;
        transform: none;
    }
    
    .footer-links {
        display: block;
        text-align: left;
    }
    
    .footer-links li a {
        font-size: 1rem;
        padding: 5px 0;
    }
    
    .contact-info {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        padding: 18px;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 12px;
        margin-top: 20px;
    }
    
    .social-links a {
        width: 42px;
        height: 42px;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding-top: 25px;
        margin-top: 25px;
        text-align: center;
    }
    
    .copyright p {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .copyright a {
        display: inline-block;
        margin: 0 5px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    /* Better column spacing for mobile */
    .footer .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .footer .col-lg-4, 
    .footer .col-lg-3, 
    .footer .col-lg-2, 
    .footer .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575px) {
    /* FURTHER ADJUSTED LOGO FOR SMALL MOBILE */
    .navbar-brand img {
        height: 42px;
        max-width: 150px;
    }
    
    .navbar-collapse {
        padding: 12px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        font-size: 1rem;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95rem;
        padding-left: 25px; /* Slightly less indent on very small screens */
    }
    
    .footer {
        padding: 35px 15px 20px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links li a {
        font-size: 0.95rem;
    }
    
    .contact-info {
        padding: 16px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    /* Stack copyright links vertically on very small screens */
    @media (max-width: 380px) {
        .copyright p {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .copyright a {
            margin: 2px 0;
            display: block;
        }
        
        .navbar-brand img {
            height: 40px;
            max-width: 140px;
        }
    }
}

@media (max-width: 400px) {
    .navbar-brand img {
        height: 40px;
        max-width: 140px;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .footer-links li a i {
        margin-right: 8px;
        width: 16px;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile dropdown animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    animation: slideDown 0.3s ease-out;
}