
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Global Styles */
body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar*/
.top-bar {
    background-color: #f8f8f8;
    padding: 8px 0;
    border-bottom: 1px solid #e7e7e7;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    margin-right: 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact-info a i {
    margin-right: 5px;
    color: #e67e22;
}

.social-icons a {
    margin-left: 10px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
}

.social-icons a:hover, .contact-info a:hover {
    color: #e67e22;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 90px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #9c7801;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    font-weight: 600;
    color: #334;
    transition: color 0.3s;
    padding: 10px 0;
}

nav ul li a:hover {
    color: #e67e22;
}

nav ul li a.active {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
}

/* Style for menu items with dropdowns */
nav ul li.has-mega-menu,
nav ul li.has-dropdown {
    position: relative;
}

/* The dropdown toggle icon button */
.dropdown-toggle {
    display: none; /* Hidden by default (desktop view) */
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

/* Rotate icon when dropdown is active */
.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.login-btn {
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #d35400;
}

/* Mega Menu for Loans */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 800px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    border-radius: 4px;
    padding: 20px;
    display: flex;
}

/* Desktop hover behavior */
@media screen and (min-width: 1201px) {
    nav ul li:hover > .mega-menu,
    nav ul li:hover > .mega-menu1 {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(6%);
    }
}

.mega-column {
    flex: 1;
    padding: 0 15px;
}

.mega-column h3 {
    color: #e67e22;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.mega-column ul {
    display: block;
}

.mega-column ul li {
    width: 100%;
    padding: 10px;
}

.mega-column ul li a {
    padding: 1px 0;
    color: #555;
    font-weight: normal;
}

.mega-column ul li a:hover {
    color: #e67e22;
    background-color: transparent;
    padding-left: 5px;
}

/* Media Gallery dropdown menu */
.mega-menu1 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    border-radius: 4px;
    padding: 10px;
    display: flex;
}

.mega-column1 {
    flex: 1;
    padding: 0 15px;
}

.mega-column1 ul {
    display: block;
}

.mega-column1 ul li {
    width: 100%;
    padding: 10px;
}

.mega-column1 ul li a {
    padding: 1px 0;
    color: #555;
    font-weight: normal;
}

.mega-column1 ul li a:hover {
    color: #e67e22;
    background-color: transparent;
    padding-left: 5px;
}

/* Mobile responsive rules */
@media screen and (max-width: 1200px) {
    .header-container {
        flex-wrap: wrap;
        position: relative;
        padding: 15px 15px;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    nav {
        flex-basis: 100%;
        order: 4;
        display: none;
        width: 100%;
    }
    
    nav.open {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 0;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    
    nav ul li a.active {
        border-bottom: none;
        color: #e67e22;
    }
    
    .social-icons {
        display: none;
    }
    
    /* Show dropdown toggle in mobile view */
    .dropdown-toggle {
        display: block;
        top: 5px; /* Align with link text */
    }
    
    /* Adjust the parent link to make room for the toggle button */
    nav ul li.has-mega-menu > a,
    nav ul li.has-dropdown > a {
        padding-right: 40px;
    }
    
    /* Hide mega menus initially in mobile view */
    .mega-menu, .mega-menu1 {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    /* When dropdown is active, display it */
    .mega-menu.active, .mega-menu1.active {
        display: flex;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        padding: 0 0 0 15px; /* Add indentation for child items */
    }
    
    /* Override hover behavior in mobile view */
    nav ul li:hover > .mega-menu,
    nav ul li:hover > .mega-menu1 {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(10px);
    }
    
    /* Ensure active state works correctly */
    nav ul li:hover > .mega-menu.active,
    nav ul li:hover > .mega-menu1.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    /* Collapse mega-menu columns in mobile view */
    .mega-column, .mega-column1 {
        width: 100%;
        padding: 0;
    }
    
    /* Adjust headings for mobile */
    .mega-column h3 {
        padding: 10px 0;
        margin-bottom: 0;
    }
}

/* Menu toggle animation */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}




/* footer sections */
 /* Footer styling */
        footer {
            background-color: #222;
            color: #ffffff;
            padding: 60px 0 30px;
        }

        /* Main container layout */
        .footer-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 20px;
        }

        /* Column styling for the first three columns */
        .footer-column {
            min-width: 200px;
            max-width: 545px;
            padding: 15px;
            margin-bottom: 20px;
        }

        /* Special styling for Company Logo column */
        .footer-column.company-logo {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
        }

        /* Company logo image styling */
        .company-logo-img {
            max-width: 280px;
            height: auto;
            margin-bottom: 20px;
        }

        /* Company description styling */
        .company-description {
            font-size: 14px;
            line-height: 1.6;
            color: #fffcfc;
            margin-bottom: 20px;
        }

        /* Social media icons */
        .social-media {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .social-media a {
            color: #fdfdfd;
            font-size: 20px;
            transition: color 0.3s ease;
        }

        .social-media a:hover {
            color: #e67e22;
        }

        /* Special styling for Contact Us column */
        .footer-column:last-child {
            flex-basis: 100%;
            order: 4;
            max-width: 100%;
        }

        /* Column headings */
        .footer-column h3 {
            color: white;
            font-size: 18px;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3:after {
            content: '';
            position: absolute;
            width: 50px;
            height: 2px;
            background-color: #e67e22;
            bottom: 0;
            left: 0;
        }

        /* Paragraph styling */
        .footer-column p {
            margin-bottom: 15px;
            font-size: 14px;
            line-height: 1.6;
        }

        /* Footer links styling */
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #ffffff;
            transition: color 0.3s;
            font-size: 14px;
            text-decoration: none;
        }

        .footer-links a:hover {
            color: #e67e22;
        }

        /* Office locations grid layout */
        .office-locations {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 10px;
        }

        /* Individual office styling */
        .office-item {
            border-bottom: 1px dotted #444;
            padding-bottom: 15px;
        }

        .office-item h4 {
            color: #e67e22;
            font-size: 16px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .office-item h4 i {
            margin-right: 8px;
        }

        /* Contact item styling */
        .contact-item {
            display: flex;
            margin-bottom: 15px;
            align-items: flex-start;
        }

        .contact-icon {
            color: #e67e22;
            margin-right: 10px;
            font-size: 16px;
            min-width: 20px;
            padding-top: 3px;
        }

        /* Copyright section */
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid #444;
            margin-top: 30px;
            font-size: 14px;
        }

        .copyrightwords{
            color: #747474;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .footer-column {
                flex-basis: 100%;
                max-width: 100%;
            }
            
            .office-locations {
                grid-template-columns: 1fr;
            }

            .company-logo {
                align-items: center;
                text-align: center;
            }

            .company-logo-img {
                max-width: 250px;
            }
        }
        @media (max-width:360px) {
            .logo img {
                height: 70px;
            }
            
        }
