/* Emergency fixes for cursor pointer issues */
.footer-links li,
.footer-links li a,
.footer-links a,
.footer-links a i,
.footer-contact li a,
footer a {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Fix for fixed navbar with scrolling header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    transition: transform 0.3s ease;
}

.navbar {
    transition: top 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

/* For non-home pages with page-header */
.page-header {
    margin-top: 0;
    position: relative;
    z-index: 10;
    overflow: visible !important;
    transition: padding-top 0.3s ease;
}

/* Fix to enable text selection in footer */
.footer-section * {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Fix for logo visibility in footer */
.footer-logo {
    background-color: white !important;
    padding: 10px !important;
    border-radius: 8px !important;
    display: inline-block !important;
}

.footer-logo img {
    filter: none !important;
    opacity: 1 !important;
}

/* Nuclear option to fix footer */
.footer-section {
    position: relative !important;
    z-index: 999 !important;
    background: linear-gradient(135deg, #072E4D 0%, #0A4270 100%) !important;
    color: #fff !important;
    pointer-events: auto !important;
    user-select: text !important;
}

.footer-section * {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: default !important;
    position: relative !important;
}

.footer-section a, 
.footer-section a:hover, 
.footer-section a:focus,
.footer-section a:active {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Fix any potential overlay issues */
body::after {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Secretariat Styling in Footer */
.secretariat-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.secretariat-info p {
    margin-bottom: 5px;
}

.secretariat-info strong {
    color: #fff;
    font-weight: 600;
}

.secretariat-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.address-text {
    opacity: 0.9;
    margin-bottom: 15px;
}

.secretariat-contacts {
    margin-top: 10px;
}

.email-text {
    color: rgba(255, 255, 255, 0.9);
}

.email-text i {
    color: #EF4B25;
    margin-right: 5px;
}

/* Professional Conference Organisers Styling */
.organiser-logo {
    margin: 10px 0 0 0;
    padding: 0;
    display: inline-block;
    max-width: 100px;
    background-color: transparent;
    text-align: left;
}

.organiser-logo-img {
    max-width: 80px;
    height: auto;
    background-color: transparent;
    object-fit: contain;
    display: block;
    margin: 0 0 0 0;
}

.company-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 10px;
}

.organiser-contacts {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
}

.organiser-contacts p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.organiser-contacts i {
    color: #EF4B25;
    width: 16px;
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

.organiser-contacts span {
    display: inline-block;
}

.organiser-contacts a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.organiser-contacts a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Important Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    color: #EF4B25;
    margin-right: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Original Footer Responsive Styling */
@media (max-width: 991.98px) {
    .footer-section {
        padding: 40px 0 0;
    }
    
    .footer-heading {
        margin-top: 20px;
        font-size: 20px;
    }
    
    .secretariat-info, 
    .organiser-contacts,
    .footer-links {
        font-size: 15px;
    }
    
    .organiser-logo-img {
        max-width: 80px;
    }
    
    .col-lg-3.col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .footer-section {
        padding: 30px 0 0;
        text-align: center;
    }
    
    .footer-heading {
        margin-top: 15px;
        text-align: center;
        padding-bottom: 10px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .secretariat-info {
        text-align: center;
    }
    
    .secretariat-contacts p, 
    .organiser-contacts p {
        justify-content: center;
        font-size: 15px;
        line-height: 1.8;
    }
    
    .address-text {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
        font-size: 15px;
    }
    
    .footer-links li {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 15px;
    }
    
    .footer-links a i {
        font-size: 14px;
    }
    
    .col-lg-3.col-md-6 {
        margin-bottom: 10px !important;
    }
    
    /* Fix Welcome heading on mobile */
    .about-section {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .section-header {
        margin-top: 20px;
    }
    
    .hero-section {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 575.98px) {
    .footer-section {
        padding: 20px 0 0;
    }
    
    .footer-heading {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 12px;
    }
    
    .secretariat-info p, 
    .organiser-contacts p,
    .footer-links a,
    .copyright-bar p {
        font-size: 14px;
    }
    
    .organiser-logo-img {
        max-width: 70px;
    }
    
    .col-lg-3.col-md-6 {
        margin-bottom: 5px !important;
    }
}

/* Copyright Bar Original Styling */
.copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 14px;
}

.copyright-bar p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.copyright-bar a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright-bar a:hover {
    color: #EF4B25;
}

@media (max-width: 767.98px) {
    .copyright-bar {
        text-align: center;
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .copyright-bar p {
        font-size: 14px;
    }
    
    .copyright-bar .text-md-end {
        text-align: center !important;
        margin-top: 5px;
    }
}

@media (max-width: 575.98px) {
    .copyright-bar {
        padding: 15px 0;
        margin-top: 20px;
    }
}

/* Modern Hamburger Menu Icon */
.navbar-toggler {
    border: none;
    padding: 10px;
    outline: none;
    position: relative;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 3px;
    background-color: #EF4B25; /* Theme primary color */
    display: block;
    position: relative;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggler .toggler-icon:nth-child(2) {
    width: 25px;
    margin-left: auto;
}

.navbar-toggler:hover .toggler-icon {
    background-color: #072E4D; /* Theme secondary color */
}

.navbar-toggler:hover .toggler-icon:nth-child(2) {
    width: 30px;
}

/* When menu is expanded */
.navbar-toggler[aria-expanded="true"] .toggler-icon:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
    width: 30px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
    /* Hide social icons on mobile */
    .social-icons {
        display: none !important;
    }
    
    /* Center align contact info on mobile */
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .contact-info a {
        margin-bottom: 5px;
    }
    
    /* Make contact column full width on mobile */
    .top-header .col-md-6:first-child {
        width: 100%;
    }
}

/* Section Headers styling */
.about-section .section-header {
    margin: 0 0 30px !important;
    padding-top: 40px;
}

.section-title {
    color: #072E4D;
}

.title-highlight,
.section-title span {
    color: #EF4B25;
}

/* Venue Details */
.venue-address p {
    color: #ffffff;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer Fixes */
.footer-section {
    pointer-events: auto !important;
    user-select: text !important;
    position: relative !important;
    z-index: 999 !important;
}

.organiser-logo {
    text-align: center;
    margin: 15px auto;
}

.organiser-logo-img {
    max-width: 80px;
    display: block;
    margin: 0 auto;
}

#overlay-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Map iframe */
.map-container iframe {
    border: 0;
}

/* Modern Hamburger Menu Icon */
.navbar-toggler {
    border: none;
    padding: 10px;
    outline: none;
    position: relative;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 3px;
    background-color: #EF4B25; /* Theme primary color */
    display: block;
    position: relative;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggler .toggler-icon:nth-child(2) {
    width: 25px;
    margin-left: auto;
}

.navbar-toggler:hover .toggler-icon {
    background-color: #072E4D; /* Theme secondary color */
}

.navbar-toggler:hover .toggler-icon:nth-child(2) {
    width: 30px;
}

/* When menu is expanded */
.navbar-toggler[aria-expanded="true"] .toggler-icon:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
    width: 30px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
    /* Hide social icons on mobile */
    .social-icons {
        display: none !important;
    }
    
    /* Center align contact info on mobile */
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .contact-info a {
        margin-bottom: 5px;
    }
    
    /* Make contact column full width on mobile */
    .top-header .col-md-6:first-child {
        width: 100%;
    }
}

/* Round Favicon for browser tabs */
link[rel="icon"] {
    border-radius: 50% !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
}

.favicon-round {
    border-radius: 50%;
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Remove underline from active nav items */
.navbar-nav .nav-item::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.navbar-nav .nav-item:has(.nav-link.active)::after {
    width: 0 !important;
    display: none !important;
}

/* Add styles for committee image containers and plus icons */
.committee-img-container {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.img-plus-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #e94e1b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.committee-img-container:hover .img-plus-icon {
    transform: scale(1.2);
    background-color: #f26332;
}

.committee-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Fix for hero section images */
.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100vw;
}

.carousel-item {
    height: auto;
    position: relative;
    overflow: hidden;
}

/* Fix horizontal scrolling issue on mobile */
body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix hero section spacing for countdown and about section */
.hero-section {
    position: relative;
    overflow: visible !important;
    margin-bottom: 100px !important;
    width: 100%;
}

.about-section {
    margin-top: -10px;
}

.carousel-inner {
    overflow: hidden;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Ensure carousel controls remain visible */
.carousel-control-prev, .carousel-control-next {
    z-index: 15 !important;
}

/* Add styles for hero overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default for desktop/laptop */
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(7, 46, 77, 0.5);
    z-index: 10;
    padding-top: 15%;
    text-align: center;
    pointer-events: auto;
}

.hero-overlay .hero-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
    padding: 15px;
    background-color: rgba(7, 46, 77, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.hero-overlay .hero-title {
    margin-left: auto;
    margin-right: auto;
}

.hero-overlay .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Hero description styling */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.5s;
    animation-fill-mode: both;
}

/* Make hero image full width and auto height */
.carousel-item {
    height: auto;
}

.carousel-item img.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 400px;
    max-width: 100%;
    display: block;
}

/* Show and optimize hero overlay only for mobile devices */
@media (max-width: 767.98px) {
    .hero-overlay {
        display: flex;
        padding-top: 2%;
        background-color: rgba(7, 46, 77, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        pointer-events: auto;
        transform: translateZ(0); /* Hardware acceleration */
        backface-visibility: hidden; /* Prevent flicker during transitions */
    }
    
    .hero-overlay .hero-content {
        width: 90%;
        max-width: 100%;
        padding: 15px;
        background-color: rgba(7, 46, 77, 0.7);
        border-radius: 10px;
        text-align: center;
    }
    
    .hero-overlay .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .hero-overlay .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-overlay .hero-cta-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .countdown-wrapper {
        position: relative;
        bottom: 0px;
        margin: 0 auto 0px;
        width: 95%;
        transform: translateX(0);
        left: auto;
        right: auto;
    }
    
    .hero-section {
        margin-bottom: 0px !important;
        padding-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .hero-overlay {
        padding-top: 15%;
    }
    
    .hero-overlay .hero-content {
        width: 90%;
        padding: 12px;
    }
    
    .hero-overlay .hero-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .hero-overlay .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .hero-overlay .hero-cta-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .hero-description {
        display: none;
    }
    
    .hero-content {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding-top: 10%;
    }
    
    .hero-overlay .hero-content {
        width: 85%;
    }
    
    .hero-overlay .hero-title {
        font-size: 1.5rem;
    }
    
    .countdown-wrapper {
        position: relative;
        bottom: 0px;
        margin: 0 auto 0px;
        padding: 0.8rem;
        width: 92%;
        max-width: 92%;
    }
    
    .countdown-header h2 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
        margin-top: -0.3rem;
    }
    
    .hero-section {
        margin-bottom: 0px !important;
        padding-bottom: 0;
    }
}

@media (max-width: 375px) {
    .hero-overlay {
        padding-top: 10%;
    }
    
    .hero-overlay .hero-content {
        width: 90%;
        padding: 10px;
    }
    
    .hero-overlay .hero-title {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .hero-overlay .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .hero-overlay .hero-cta-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .countdown-wrapper {
        position: relative;
        bottom: 0px;
        margin: 0 auto 0px;
        padding: 0.8rem;
        width: 90%;
        max-width: 90%;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-separator {
        font-size: 1rem;
    }
    
    .hero-section {
        margin-bottom: 0px !important;
        padding-bottom: 0;
    }
}

#heroCarousel, 
.carousel-inner, 
.carousel-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 480px) {
    .about-section {
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .hero-section {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 375px) {
    .about-section {
        margin-top: 0px;
        padding-top: 0px;
    }
    
    .hero-section {
        margin-bottom: 5px !important;
    }
}

/* Countdown timer styling & placement */
.countdown-wrapper {
    background: linear-gradient(45deg, #EF4B25, #FDB016);
    max-width: 550px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: -155px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30 !important;
}

/* Responsive adjustments for hero overlay */
@media (max-width: 991.98px) {
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .countdown-wrapper {
        position: relative;
        bottom: 35px;
        margin: 0 auto 0px;
        width: 95%;
        transform: translateX(0);
        left: auto;
        right: auto;
    }
    
    .hero-section {
        margin-bottom: 0px !important;
        padding-bottom: 0;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Ensure overlay stays fixed during slide transitions */
.carousel-inner {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

#heroCarousel {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    overflow: hidden;
    height: auto;
    width: 100%;
}

.carousel-item img.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 400px;
    max-width: 100%;
    display: block;
}

@media (max-width: 767.98px) {
    .carousel-item {
        min-height: 300px;
    }
    
    .carousel-item img.hero-image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        min-height: 250px;
    }
    
    .carousel-item img.hero-image {
        min-height: 250px;
    }
}

/* Responsive Fixes for Organiser Section */
@media (max-width: 767.98px) {
    .organiser-logo, .secretariat-title, .company-name, .organiser-contacts {
        text-align: center;
    }
    
    .organiser-logo-img {
        margin: 0 auto;
    }
    
    .organiser-contacts p {
        justify-content: center;
    }
    
    /* Rest of mobile styles remain unchanged */
}

.row.gx-4.gy-4 {
    row-gap: 0 !important;
}

/* Add styles for the logos in the navigation */
.navbar-brand:first-of-type {
    margin-right: 0;
}

.navbar-brand:nth-of-type(2) {
    margin-left: 0;
}

.logo-2 {
    width: 55%;
    height: auto;
}

/* Fix navigation menu wrapping */
.navbar-nav .nav-item {
    padding: 0 5px;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
}

/* Ensure container has proper spacing */
.navbar .container {
    max-width: 95%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        white-space: normal;
    }
}

/* Mobile logo spacing fixes */
@media (max-width: 768px) {
    .navbar > .container {
        justify-content: flex-start;
        padding-left: 10px;
    }
    
    .navbar-brand {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand:first-of-type {
        margin-right: 0;
    }
    
    .navbar-brand:nth-of-type(2) {
        margin-left: 0;
    }
    
    .logo {
        max-height: 60px;
        width: auto;
    }
    
    .logo-2 {
        width: 70%;
        height: auto;
        margin-left: -5px; /* Negative margin to remove gap */
    }
    
    /* Adjust toggler position */
    .navbar-toggler {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .navbar > .container {
        padding-left: 5px;
    }
    
    .navbar-brand {
        margin: 0;
        padding: 0;
    }
    
    .logo {
        max-height: 50px;
        width: auto;
    }
    
    .logo-2 {
        width: 65%;
        height: auto;
        margin-left: -5px; /* Negative margin to remove gap */
    }
}

/* Base logo styling */
.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-brand:first-of-type {
    margin-right: 0;
}

.navbar-brand:nth-of-type(2) {
    margin-left: 0;
}

.logo-2 {
    margin-left: -5px; /* Consistent negative margin to remove gap */
}

/* Specific screen size adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
    .logo {
        max-height: 65px;
        width: auto;
    }
    
    .logo-2 {
        width: 55%;
        height: auto;
    }
}

/* Tablet landscape (iPad) */
@media (min-width: 769px) and (max-width: 991px) {
    .navbar > .container {
        justify-content: flex-start;
        padding-left: 15px;
    }
    
    .logo {
        max-height: 60px;
        width: auto;
    }
    
    .logo-2 {
        width: 65%;
        height: auto;
        margin-left: -5px;
    }
    
    .navbar-toggler {
        margin-left: auto;
    }
}

/* iPad specific (around 820px) */
@media (min-width: 800px) and (max-width: 850px) {
    .logo {
        max-height: 55px;
    }
    
    .logo-2 {
        width: 60%;
        margin-left: -8px; /* Greater negative margin to close gap */
    }
}

/* Mobile logo spacing fixes */
@media (max-width: 768px) {
    .navbar > .container {
        justify-content: flex-start;
        padding-left: 10px;
    }
    
    .navbar-brand {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .logo {
        max-height: 60px;
        width: auto;
    }
    
    .logo-2 {
        width: 70%;
        height: auto;
        margin-left: -5px;
    }
    
    /* Adjust toggler position */
    .navbar-toggler {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .navbar > .container {
        padding-left: 5px;
    }
    
    .logo {
        max-height: 50px;
        width: auto;
    }
    
    .logo-2 {
        width: 65%;
        height: auto;
        margin-left: -5px;
    }
}

/* Fix for preloader logo size issue */
.preloader img,
#preloader img {
    width: 150px !important; /* Fixed width */
    height: 120px !important; /* Fixed height */
    max-width: 150px !important;
    max-height: 120px !important;
    object-fit: contain !important; /* Maintain aspect ratio */
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure preloader container doesn't cause layout issues */
.preloader,
#preloader {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
}

/* For mobile devices, ensure the page-header is properly displayed */
@media (max-width: 767.98px) {
    .page-header {
        padding-bottom: 50px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}