/* Existing Mobile Menu Styles */
.dropdown-click #mobile-header.main-navigation.toggled ul, 
.dropdown-click #mobile-header.main-navigation.toggled ul li > ul {
    display: block;
    opacity: 1;
    visibility: visible !important;
    pointer-events: auto;
    height: auto;
    overflow: visible;
}
#mobile-header.main-navigation.toggled .main-nav ul ul {
    position: relative;
    top: 0;
    left: auto!important;
    right: auto!important;
    width: 100%;
    float: none;
}
@media screen and (max-width: 1199px) {
    .top-nav ul ul {
        padding-left: 1em;
    }
}
.home .wp-block-columns {
    max-width: 100%;
}

@media screen and (max-width: 1199px) {
    body #nav_top.top-nav .top-menu {
        margin: 0;
    }
    .top-menu li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
    }
    .top-menu li.menu-item-has-children > ul {
        display: none;
        width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }
    .top-menu li.menu-item-has-children:focus > ul,
    .top-menu li.menu-item-has-children:focus-within > ul,
    .top-menu li.menu-item-has-children:hover > ul {
        display: block;
        opacity: 1;
        max-height: 500px; /* Adjust this value as needed */
    }
    /* Add the caret symbol to all items with submenus */
    .top-menu li.menu-item-has-children > a:after {
        content: "\25BC"; /* Unicode for down arrow */
        display: inline-block;
        margin-left: 8px;
        font-size: 0.6em; /* Adjust the size as needed */
        transition: transform 0.3s ease;
    }
    .top-menu li.menu-item-has-children:hover > a:after,
    .top-menu li.menu-item-has-children:focus > a:after,
    .top-menu li.menu-item-has-children:focus-within > a:after {
        transform: rotate(180deg);
    }

    /* Adjustments for nested submenus */
    .top-menu li.menu-item-has-children > ul > li.menu-item-has-children > a:after {
        content: "\25BA"; /* Unicode for right-pointing arrow for nested items */
        transform: none;
        font-size: 0.6em; /* Adjust the size as needed */
    }
    .top-menu li.menu-item-has-children > ul > li.menu-item-has-children:hover > a:after,
    .top-menu li.menu-item-has-children > ul > li.menu-item-has-children:focus > a:after,
    .top-menu li.menu-item-has-children > ul > li.menu-item-has-children:focus-within > a:after {
        transform: rotate(90deg); /* Rotate right-pointing arrow downwards */
    }
}

/* Enhancements for Desktop Menu */
@media screen and (min-width: 1200px) {
    .top-nav .top-menu > li > a {
        font-size: 1em; /* Adjusted to match previous size */
        padding: 8px 10px; /* Adjusted padding */
        color: #fff;
        text-transform: uppercase;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .top-nav .top-menu > li > a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffd700; /* Gold color for hover effect */
    }

    .top-nav .top-menu li.menu-item-has-children > ul {
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 5px 0; /* Adjusted padding */
    }

    .top-nav .top-menu li.menu-item-has-children > ul > li > a {
        color: #333;
        padding: 8px 10px; /* Adjusted padding for better spacing */
        font-size: 0.85em; /* Adjusted font size */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .top-nav .top-menu li.menu-item-has-children > ul > li > a:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: #007bff; /* Blue color for hover effect */
    }
}
/* For Footer */
.official-links {
	display: flex;
	justify-content: space-around;
	padding: 0;
	background-color: transparent;
	margin: 0;
}

.official-link {
	background-color: #004080;
	color: #ffffff;
	padding: 5px 15px;
	border-radius: 3px;
	text-decoration: none;
	font-family: Arial, sans-serif;
	font-size: 14px;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
	border: none;
	margin: 0 5px;
}

.official-link:hover {
	background-color: #e0e0e0;
	color: #333333;
}

/*tablet screens*/
@media (max-width: 768px) {
	.official-links {
		justify-content: space-around;
	}
	.official-link {
		margin: 0 15px;
		width: auto;
	}
}

/* mobile screens */
@media (max-width: 480px) {
	.official-links {
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		gap: 10px;
	}
	.official-link {
		width: 90%;
		margin: 5px 0;
		padding: 10px 0;
		font-size: 12px;
	}
}