/* Alignment Fix CSS for SafalSoft DSC */

/* Global Reset */
* {
    box-sizing: border-box;
}

/* Container Alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar Alignment */
.navbar {
    position: relative;
    min-height: 70px;
    margin-bottom: 0;
    border: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.navbar-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    text-decoration: none;
    color: white !important;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: 2px solid white;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    margin: 4px 0;
}

.right-div {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

/* Menu Section Alignment */
.menu-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: relative;
}

.menu-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-collapse {
    display: block;
    width: auto;
}

#menu-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#menu-top li {
    list-style: none;
    margin: 0;
}

#menu-top li a {
    display: block;
    padding: 12px 20px;
    color: #2c5aa0 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 25px;
    white-space: nowrap;
}

#menu-top li a:hover,
#menu-top li a.active {
    background-color: #2c5aa0;
    color: white !important;
    transform: translateY(-2px);
}

/* Responsive Alignment */
@media (max-width: 991px) {
    .navbar-toggle {
        display: block;
    }
    
    .right-div {
        display: none;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    .menu-section .container {
        justify-content: stretch;
    }
    
    .navbar-collapse {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    #menu-top {
        flex-direction: column;
        width: 100%;
        background: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 5px;
    }
    
    #menu-top li {
        width: 100%;
    }
    
    #menu-top li a {
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand span {
        font-size: 16px;
    }
    
    .right-div {
        font-size: 12px;
    }
}

/* Grid System Alignment */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    position: relative;
    min-height: 1px;
    padding: 0 15px;
}

/* Text Alignment Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Margin and Padding Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Fix for broken layouts */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure proper stacking */
.navbar {
    z-index: 1030;
}

.menu-section {
    z-index: 1020;
}

/* Fix for overlapping elements */
section {
    position: relative;
    z-index: 1;
}