/*=========  Template =======*/

@media (max-width: 1199px) {
#top { width: 98%; margin: 0 auto; padding: 5px 1%; }
#top-L { float: none; width: 100%; margin: 0; padding: 0; }
#top-R { float: none; width: 100%; margin: -20px 0 0 0; padding: 0;  }
#info { text-align: center; }
#info .icon-box {  float: none; margin: 0 auto; text-align: left; }
#info .icon-box:nth-child(3) { display: none; } 
#info .social a { float: none; }

#top1 .txt, #top1 .link, #info .social { float: none; width: 96%; padding: 10px 2%; text-align: center; }

#logo { height: auto; padding: 10px 0 0 0; }

#about #L, #about #R, #contact #L, #contact #R,
#about ul li {float: none; width: 100%; margin: 20px 0;  }

#header .mainnav, #info .address, #info .email { display:none!important; }
#open-button { display:block; } 
.mainnav { display: none; }  }

@media (max-width: 767px) {
	
#info .icon-box  { padding: 1px 10px; }
#top-R, #top1 .txt, #top1 .link { float: none;  clear: both; display: table; content: '';  }
header, #top1 .txt, #top1 .link {  width: 98%; padding: 5px 1%; }
#top1 .link { padding-top: 10px; text-align: center; margin: 0 auto; }
#top1 .link a { display: table; }
#top1 .link a:first-child, #top1 .link a:last-child { margin: 10px auto;  }

#logo { padding: 15px 0 0 0;  }
#top-Full.reveal:not(.alt) #top-L { width: 20%;}
#open-button { right: 3%; top: 10%; }
.moduletable_menu ul.ide_menu { padding: 0 15px;  }


#contact .btqc-field-container input[type=text], #contact .btqc-field-container textarea { width: 95%; }
}



@media (min-width: 1200px) {
.hidden-wide { display: none !important; }
#gallery .photo { width: 32%; margin: 1px;  }

}

@media (min-width: 980px) and (max-width: 1199px) {
.hidden-normal {   display: none !important; }
.moduletable_menu ul.ide_menu, .moduletable_menu ul.ide_menu li { font-size:13px;  }
.moduletable_menu ul.ide_menu li { margin: 0 1%; }
.moduletable_menu ul.ide_menu li a { padding: 15px;   }
#gallery .photo { width: 100%; margin: 5px; }
  
}

@media (min-width: 768px) and (max-width: 979px) {
.hidden-xtablet {   display: none !important;  }
.moduletable_menu ul.ide_menu, .moduletable_menu ul.ide_menu li { font-size:12px;  }
.moduletable_menu ul.ide_menu li { margin: 0 1%; }
.moduletable_menu ul.ide_menu li a { padding: 10px;   }
 
#gallery .photo { width: 90%; margin: 5px; } 

 
}

@media (min-width: 600px) and (max-width: 767px) {
.hidden-tablet {   display: none !important;  }
#gallery .photo { width: 90%; margin: 5px; }
}

@media (max-width: 599px) {
.hidden-mobile { display: none !important; }
#gallery .photo { width: 90%; margin: 5px; }
}

@media screen and (orientation:portrait) {
.hidden-portait { display: none !important; }	
#open-button { width: 80px; }

#top { width: 98%; margin: 0 auto; padding: 5px 1%; }
#top-L { float: none; width: 100%; margin: 0; padding: 0; }
#top-R { float: none; width: 100%; margin: 0; padding: 0;  }
#info { text-align: center; }
#info .icon-box {  float: none; margin: 0 auto; text-align: left;   }	 

}

@media screen (orientation:landscape) {



}

@media (max-width: 1023px) {
#top3 ul li { float: none; width: 98%; padding: 10px 1%;  }
}



@media screen (max-width: 1199px) and (orientation:landscape) { }


.hidden { display: none !important;  visibility: hidden; }

/*=========  Joomla Content =======*/
@media (max-width: 769px) {
.cols-2 .item, .cols-3 .item, .cols-4 .item { float: none; width: 100%; } 
.blogListItem { border-bottom: 2px solid #e6e6e6;  }
}

@media (min-width: 1920px) {.blog-featured.home img { height: 400px; } }
@media (max-width: 1200px) {.blog-featured.home img { width: 100%; height: 250px; } }
@media (max-width: 767px) {.blog-featured.home img { height: auto; } }
@media (min-width: 767px) and (orientation:portrait) {.blog-featured.home img { width: 100%; height: auto !important; } }







/* =========================================================
   Enhanced Mobile & Tablet Responsive Styles (Powersound V9)
   ========================================================= */

@media (max-width: 1199px) {
  html, body {
    overflow-x: hidden;
  }
  #box-Full {
    overflow-x: hidden;
  }

  /* Clean off-canvas mobile drawer without negative margin overflow */
  .menu-wrap {
    margin-right: 0 !important;
    width: 270px;
    max-width: 82vw;
    box-sizing: border-box;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    box-shadow: none;
  }
  .show-menu .menu-wrap {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.5);
  }
  .menu-wrap ul.ide_menu > li {
    padding-left: 0;
  }
  .menu-wrap ul.ide_menu > li > a {
    padding: 12px 18px;
    font-size: 15px;
  }
  .menu-wrap ul.ide_menu > li.active > a {
    color: #fff;
    border-left: 3px solid #e41515;
    background: rgba(255, 255, 255, 0.06);
  }
  .menu-wrap ul.ide_menu li ul.dropdown {
    background: rgba(0, 0, 0, 0.2);
  }
  .menu-wrap ul.ide_menu li li {
    padding-left: 0;
  }
  .menu-wrap ul.ide_menu li li > a {
    padding: 10px 18px 10px 32px;
    font-size: 14px;
    color: #ccc;
  }

  /* Header & Info alignment */
  header {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 16px;
  }
  #top {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 16px;
  }
  #top-L {
    float: none;
    width: 100%;
    padding-right: 96px;
    box-sizing: border-box;
  }
  #logo {
    padding: 4px 0 8px;
  }
  #logo img {
    height: 42px;
    width: auto;
  }
  #open-button {
    display: block;
    top: 18px;
    right: 16px;
    height: 36px;
    line-height: 36px;
    width: auto;
    padding: 0 14px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 20;
  }
  #top-R {
    float: none;
    width: 100%;
    margin: 4px 0 0 0;
  }
  #info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
  }
  #info .social {
    width: 100%;
    height: auto;
    padding: 2px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  #info .icon-box {
    float: none;
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 4px 10px;
    border-right: none;
    margin: 0;
  }
  #info .icon-box .icon {
    font-size: 24px;
    padding-right: 10px;
  }

  /* Fix #top3 background-attachment:fixed mobile bug so dark bg is always visible */
  #top3 {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 24px;
    background-color: #111111;
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }
  #top3 p {
    width: 100%;
    max-width: 100%;
  }
}

/* Tablet 2-column grid (600px - 991px) */
@media (min-width: 600px) and (max-width: 991px) {
  .cols-3 .item,
  .cols-4 .item,
  .cols-5 .item {
    float: left;
    width: 48.5% !important;
    margin: 0 0 20px 0 !important;
  }
  .cols-3 .item:nth-child(even),
  .cols-4 .item:nth-child(even),
  .cols-5 .item:nth-child(even) {
    margin-left: 3% !important;
  }
  .cols-3 .item:nth-child(odd),
  .cols-4 .item:nth-child(odd),
  .cols-5 .item:nth-child(odd) {
    clear: left;
  }
}

/* Mobile & Small Tablet (<= 991px) Bottom Banner & Stats Fix */
@media (max-width: 991px) {
  #bottom2 {
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    min-height: 180px;
    padding: 48px 20px !important;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #bottom2 h1 {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  }
  #bottom3 {
    width: 100%;
    box-sizing: border-box;
    padding: 28px 20px !important;
    background-color: #141414 !important;
    background-attachment: scroll !important;
  }
  #bottom3 h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
    color: #e41515;
    margin-bottom: 4px !important;
  }
}

/* Smartphone Layout (<= 767px) */
@media (max-width: 767px) {
  /* Promo CTA bar (#top1) */
  #top1 {
    width: 100%;
    box-sizing: border-box;
    padding: 22px 16px;
  }
  #top1 .txt {
    width: 100%;
    padding: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
  }
  #top1 .link {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  #top1 .link a,
  #top1 .link a:first-child,
  #top1 .link a:last-child {
    display: block;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px 16px;
    text-align: center;
    font-size: 15px;
  }

  /* Story section (#top3) */
  #top3 {
    padding: 32px 16px;
  }
  #top3 h1 {
    font-size: 24px;
    line-height: 1.4;
    margin: 10px 0;
  }
  #top3 h2 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  #top3 ul {
    margin: 16px 0;
  }
  #top3 ul li {
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0 0 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #e41515;
    border-radius: 0 4px 4px 0;
  }
  #top3 h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  /* Bottom stats stack cleanly on phones */
  #bottom2 h1 {
    font-size: 24px !important;
  }
  #bottom3 ul li {
    display: block;
    width: 100% !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  #bottom3 ul li:last-child {
    border-bottom: none;
  }

  /* Breadcrumbs & Article Containers */
  #breadcrumbs {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  #breadcrumbs ul.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  #breadcrumbs li {
    float: none;
    padding: 3px 6px;
  }

  .page-header,
  .blog h1,
  .item-page .blogItemHeader,
  .blogListItem,
  .item-page .itemText {
    width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }
  .blogItemHeader {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .ItemHeader {
    margin-left: 0;
  }
  h2.blogItemTitle {
    font-size: 21px;
    line-height: 1.35;
  }
  .itemText {
    margin-top: 20px;
  }
  .itemText h1 {
    font-size: 22px;
    line-height: 1.4;
  }
  .itemText h2 {
    font-size: 18px;
    line-height: 1.45;
  }
  .img-fulltext-left img,
  .img-intro-none img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Responsive Embedded Videos & Tables */
  .itemText iframe {
    max-width: 100% !important;
    display: block;
    margin: 14px auto;
  }
  .itemText iframe[src*="youtube.com"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Grid & Showcase Cards */
  .showcaseBlog {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px 24px;
  }
  .cols-1 .item,
  .cols-2 .item,
  .cols-3 .item,
  .cols-4 .item,
  .cols-5 .item {
    float: none !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
  }
  .showcaseBlog-Item {
    padding: 14px;
    border-radius: 6px;
    box-sizing: border-box;
  }
  .showcaseBlog-Item .img-intro img {
    width: 100%;
    height: auto;
  }
  #showcase img.photo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 4px;
  }

  /* Showcase Pagination: clean flex order & tap-friendly buttons */
  .showcaseBlog-nav ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
  }
  .showcaseBlog-nav li,
  .showcaseBlog-nav .pagination-start,
  .showcaseBlog-nav .pagination-next {
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-height: 36px;
    border-radius: 4px;
  }

  /* Contact Page */
  #contact #L,
  #contact #R {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
  #contact .btqc-field-container input[type=text],
  #contact .btqc-field-container textarea {
    width: 100% !important;
    box-sizing: border-box;
    height: 44px;
    padding: 8px 12px;
    margin: 8px 0;
  }
  #contact .btqc-field-container textarea {
    height: 110px;
  }

  /* Footer */
  footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    box-sizing: border-box;
  }
  footer .copyright {
    float: none;
    width: auto;
    flex: 1;
    padding-right: 12px;
  }
  footer .go2top {
    float: none;
    width: auto;
  }
  footer .go2top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 18px;
  }
}
