/* Responsive + link fixes layered over the original theme (loaded last). */
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img,video,iframe,embed,object{max-width:100%}
.about-content img,.welcome-right img,.content-item img{max-width:100%;height:auto!important}
.about-content,.welcome-right,.content-item,.notice-item{overflow-wrap:break-word;word-wrap:break-word}
.top-contact a{color:inherit;text-decoration:none}
.top-contact a:hover{color:#fff;text-decoration:underline}
.contact-main a{color:inherit}
.contact-main a[href^="mailto"],.contact-main a[href^="tel"]{text-decoration:none}
.contact-main a:hover{text-decoration:underline}
.notice-item{margin-bottom:25px;padding-bottom:10px;border-bottom:1px solid #e5e5e5;clear:both}
.notice-item h1{word-break:break-word}
.about-content{padding-bottom:30px}
.about-content table{max-width:100%}
.alert{margin-top:10px}
.map-wrap{margin-top:20px}
.map-wrap iframe,.banner iframe{max-width:100%}
.gallery img{width:100%;height:auto;object-fit:cover}

/* Members page */
.member-search{margin:0 0 15px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.member-search .form-control{flex:1 1 280px;max-width:520px}
#divtabs{margin-bottom:5px}
#divtabs>li>a{padding:8px 12px}
#divtabs .badge{background:#e71029;font-size:11px}
.member-table>tbody>tr>td{vertical-align:top}
.member-table .tab_title td{background:#0a0a6a;color:#fff;font-weight:bold}

/* Tablet + phone */
@media (max-width:991px){
  header .top-contact{text-align:center;margin:0 0 15px}
  header .col-sm-5{text-align:center}
  header .col-sm-5 img{margin:15px auto 5px;max-width:320px}
  .about-content .col-sm-4{margin-top:20px}
  .contact-main iframe{height:260px}
}
@media (max-width:767px){
  .container{padding-left:15px;padding-right:15px}
  header .col-sm-5 img{max-width:260px}
  .top-contact{font-size:16px;letter-spacing:.5px}
  .b-logo h1{font-size:22px;line-height:1.3;margin-bottom:25px}
  .b-logo img{max-width:140px}
  .banner .btn-lg{padding:8px 14px;font-size:14px}
  .banner .col-sm-4{margin-bottom:15px}
  .banner iframe{height:220px;border-width:5px}
  .welcome-left h1{font-size:22px}
  .welcome-left,.welcome-right{padding:20px 15px}
  .about-content h1{font-size:24px;line-height:1.25}
  .about-content h3{font-size:17px}
  .content-main .content-item{margin-bottom:20px}
  .gallery-main .col-sm-6{margin-bottom:10px}
  .gallery-main a{display:block}
  footer .foot-link ul{padding:0}
  footer .foot-link li{display:inline-block;margin:2px 4px}
  .btn-lg{white-space:normal}
  /* wide content tables scroll sideways inside their box instead of breaking the page */
  .about-content .col-sm-10>table,.about-content .container>table,.notice-item table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* members table turns into stacked cards */
  .member-table,.member-table tbody{display:block;width:100%}
  .member-table tr.tab_title{display:none}
  .member-table tr{display:block;border:1px solid #ccc;border-radius:4px;margin-bottom:10px;padding:8px 10px;background:#fff;position:relative}
  .member-table>tbody>tr>td{display:block;border:0;padding:2px 0}
  .member-table td[data-label="Sl No."]{display:inline-block;color:#777;font-size:12px;margin-right:10px}
  .member-table td[data-label="Mem No."]{display:inline-block;font-weight:bold;background:#0a0a6a;color:#fff;border-radius:3px;padding:1px 8px;font-size:12px}
  .member-table td[data-label="Mem No."]:before{content:"Mem No. "}
  .member-table td[data-label="Nominee"]{margin-top:6px;padding-top:6px;border-top:1px dashed #ddd}
  .member-table td[data-label="Nominee"]:before{content:"Nominee: ";font-weight:bold}
  .member-table td[data-label="Member"]{margin-top:4px}
  #divtabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;border-bottom:1px solid #ddd}
  #divtabs>li{float:none;white-space:nowrap}
  #divtabs>li>a{margin-right:2px}
  .member-search .form-control{max-width:none}
}
@media (max-width:420px){
  .top-contact{font-size:15px}
  .b-logo h1{font-size:19px}
  .about-content h1{font-size:21px}
  .btn-lg{padding:10px 14px;font-size:15px}
}
@media (max-width:962px){
  /* keep the slide-down mobile menu inside the screen */
  .mean-container .mean-bar{position:relative;z-index:50}
}
.contact-main p,.contact-main a,.top-contact{overflow-wrap:anywhere}
@media (max-width:767px){
  /* indents/widths pasted from Word documents */
  .about-content [style*="margin-left"],.notice-item [style*="margin-left"]{margin-left:0!important}
  .about-content [style*="margin-right"],.notice-item [style*="margin-right"]{margin-right:0!important}
  .about-content [style*="width"],.notice-item [style*="width"]{max-width:100%!important}
  .about-content [style*="text-indent"]{text-indent:0!important}
  .about-content [style*="float"]{float:none!important}
}
.gallery .col-xs-6 a{display:block}
.gallery .col-xs-6 img{height:170px;object-fit:cover;width:100%}
@media (min-width:768px){.gallery .col-xs-6 img{height:150px}}
/* entrance animations start off-screen; never let them widen the page */
.banner,.welcome-part,.content-main,footer{overflow-x:hidden}
@supports (overflow:clip){.banner,.welcome-part,.content-main,footer{overflow-x:clip}}
header,nav{overflow-x:hidden}
@supports (overflow:clip){header,nav{overflow-x:clip}}
.member-search{margin:0 0 15px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.member-search .form-control{flex:1 1 260px;max-width:560px}
.pfile{display:inline-block;margin-top:3px;font-size:13px;color:#0a0a6a;font-weight:600}
#mpane{transition:opacity .15s}
