/**
 * Theme Name:        AL MAHIR MACHINERY
 * Theme URI:         https://almahirmachinery.com
 * Description:       Hassan Dev - Al Mahir Machinery Theme
 * Version:           1.0.0
 * Author:            Hassan Shah
 * Author URI:        https://almahirmachinery.com
 * Tags:              block-patterns, full-site-editing
 * Text Domain:       fabled-sunset
 * Domain Path:       /assets/lang
 * Tested up to:      6.4
 * Requires at least: 6.2
 * Requires PHP:      7.4
 * License:           ALL RIGHTS RESERVED
 * License URI:       https://almahirmachinery.com
 */

/* ===== DESKTOP / LARGE SCREENS ===== */
@media (min-width: 992px) {

    .navbar .custom-logo {
        max-height: 40px;   /* fixed height */
        width: auto;        /* keep aspect ratio */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-right: auto;
    }

}

/* ===== MOBILE FIX ===== */
@media (max-width: 991px) {

    .navbar .custom-logo {
        display: block !important;
        margin: 0 !important;
        text-align: left !important;
        max-height: 32px;   /* smaller logo on mobile */
        width: auto;
    }

    .navbar-brand {
        width: 100%;
        text-align: left !important;
        justify-content: flex-start !important;
        display: flex;
    }

}

.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.menu-item-has-children.dropdown-open > .sub-menu {
    display: block;
}

.menu-item-has-children {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.8em;
}

/*.parrot-green-almahir1 {
     background-color:#0fb207 !important;   bright parrot green 
     background-color: #46b946;  softer green 
 /* Parrot green 
}*/
.banner-img {
  height:300px;
  width: 1100px;
}

.banner-img-aboutus {
  height:100px;
  width: 500px;
}

/** after code for side bar style */
/* Footer Latest Posts styling */
.footer-widgets .wp-block-latest-posts {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-widgets .wp-block-latest-posts li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.footer-widgets .wp-block-latest-posts a {
    color: #0d6efd; /* Bootstrap primary */
    text-decoration: none;
    font-weight: 500;
}

.footer-widgets .wp-block-latest-posts a:hover {
    text-decoration: underline;
}
/* Sidebar Widget Styling */


.widget ul {
    padding-left: 0;
    list-style: none;
}

.widget ul li {
    margin-bottom: 0; /* Bootstrap list-group handles spacing*/
   
}





/* ✅ Smooth fade transition for banner */
.fade-image {
  opacity: 1;
  transition: opacity 1s ease-in-out;

  /* 🟢 Mobile performance fixes */
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}

.fade-out {
  opacity: 0;
}

/*  admin area almahir tags  */

.post-tags .tag {
    background: #f3f3f3;
    border-radius: 3px;
    padding: 4px 8px;
    margin-right: 5px;
    display: inline-block;
}

.post-tags .almahr-tag {
    background: #ffefc4;
    color: #333;
}

/* ===== NAVBAR DEFAULT (transparent) ===== */
.navbar {
    background-color: transparent !important;
    transition: all 0.3s ease;
}



    /* Dropdown parent menu item (has children) */
.navbar .menu-item-has-children.dropdown > a {
    color: red !important;
}

.navbar {
    position: relative;
    border-top: 3px solid #198754; /* green line */
    border-bottom: 3px solid #198754; /* green line */
}


/* ===== FIXED LOGO BOX (THE MAGIC) ===== */
.logo-box{
    width:160px;          /* reserve space for logo */
    min-width:160px;
    margin-right:15px;
    flex-shrink:0;
}

/* control wordpress logo image */
.custom-logo{
    width:100%;
    height:auto;
    max-height:60px;
    object-fit:contain;
}

/* FLEX WRAP BEHAVIOUR */
.logo-title-wrap{
    display:flex;
    align-items:center;
    min-width:0;
}

/* TITLE SAFE WRAP */
.site-title-text{
    flex:1;
    min-width:0;
    line-height:1.2;
    word-break:break-word;
    overflow-wrap:anywhere;
}

/* responsive font */
@media (max-width:1400px){
    .site-title-text{ font-size:18px; }
}
@media (max-width:1200px){
    .site-title-text{ font-size:16px; }
}
@media (max-width:991px){
    .logo-title-wrap{
        flex-direction:column;
        text-align:center;
    }
    .logo-box{
        margin-right:0;
        margin-bottom:10px;
    }
}


