/* Sri Uthi Amman Thirukovil – phone / tablet view fixes */
@media (max-width: 980px) {
  /* 1. Hide the top bar (phone / e-mail / social icons) on phones & tablets */
  .et_pb_section_0_tb_header, .et_pb_section_1_tb_header { display: none !important; }

  /* 2. Header: logo left, menu (≡) right, one line */
  .et_pb_section_3_tb_header { padding: 8px 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  .et_pb_section_3_tb_header > .et_pb_row { display: flex !important; flex-wrap: wrap; align-items: center;
       width: 92% !important; padding: 0 !important; }
  .et_pb_section_3_tb_header .et_pb_column_9_tb_header { width: 72% !important; margin: 0 !important; }
  .et_pb_section_3_tb_header .et_pb_image_1_tb_header { margin: 0 !important; text-align: left !important; max-width: 230px; }
  .et_pb_section_3_tb_header .et_pb_image_1_tb_header img { max-height: 62px; width: auto; }
  .et_pb_section_3_tb_header .et_pb_column_10_tb_header { width: 28% !important; margin: 0 !important; position: static !important; }
  .et_pb_section_3_tb_header .et_pb_menu_1_tb_header { margin: 0 !important; }
  .et_pb_section_3_tb_header .et_pb_menu__wrap { justify-content: flex-end !important; }
  .et_pb_section_3_tb_header .et_mobile_nav_menu { float: right; margin: 0 !important; }
  .et_pb_section_3_tb_header .mobile_nav .mobile_menu_bar:before { font-size: 36px; }
  /* dropdown menu full width under the header */
  .et_pb_section_3_tb_header > .et_pb_row { position: relative; }
  .et_pb_section_3_tb_header .et_pb_menu_inner_container, .et_pb_section_3_tb_header .et_pb_menu,
  .et_pb_section_3_tb_header .et_mobile_nav_menu, .et_pb_section_3_tb_header .mobile_nav { position: static !important; }
  .et_pb_section_3_tb_header .et_mobile_menu { left: 0 !important; right: 0 !important; width: 100% !important; top: 100% !important; }
  /* "Read in English" button: compact, under the header */
  .et_pb_section_3_tb_header .et_pb_column_11_tb_header { width: 100% !important; margin: 6px 0 0 !important; }
  .et_pb_section_3_tb_header .dnxte_button_1_tb_header a { font-size: 14px !important; padding: 6px 18px !important; }

  /* 3. Tables fit the screen */
  .et_pb_text_inner table { width: 100% !important; max-width: 100%; table-layout: fixed; }
  .et_pb_text_inner td, .et_pb_text_inner th { font-size: 14px !important; line-height: 1.5 !important;
       padding: 8px 7px !important; word-break: normal; overflow-wrap: anywhere; vertical-align: middle; }
  .et_pb_text_inner th { font-size: 15px !important; }

  /* wider content rows on phones */
  .et_pb_row { width: 90% !important; }
  html, body { overflow-x: hidden; }
}
/* Parallax backgrounds did not cover tall sections on phones -> white text on white */
@media (max-width: 980px) {
  .et_parallax_bg_wrap .et_parallax_bg, .et_pb_section .et_parallax_bg {
    height: 100% !important; top: 0 !important; bottom: 0 !important; transform: none !important;
    background-attachment: scroll !important; background-size: cover !important; }
}
@media (max-width: 980px) {
  .et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module { background-attachment: scroll !important; }
}
/* Members / management photos: 2 per row on phones (were one huge photo per screen) */
@media (max-width: 767px) {
  .et_pb_row:has(> .et_pb_column_1_4 .dnxte_blurb) { display: flex !important; flex-wrap: wrap; justify-content: center; }
  .et_pb_row > .et_pb_column_1_4:has(.dnxte_blurb) { width: 47% !important; margin: 0 1.5% 25px !important; }
  .et_pb_column_1_4 .dnxte_blurb .dnxt-blurb-image img { max-width: 140px; margin: 0 auto; display: block; }
  .et_pb_column_1_4 .dnxte_blurb .dnxt-blurb-heading, .et_pb_column_1_4 .dnxte_blurb .dnxt-blurb-description,
  .et_pb_column_1_4 .dnxte_blurb h1, .et_pb_column_1_4 .dnxte_blurb h2, .et_pb_column_1_4 .dnxte_blurb h3,
  .et_pb_column_1_4 .dnxte_blurb h4, .et_pb_column_1_4 .dnxte_blurb p { font-size: 13px !important; line-height: 1.4 !important; }
}
@media (max-width: 767px) {
  /* Location page: contact form heading was cut off */
  .et_pb_text_2 .et_pb_text_inner h1 { font-size: 26px !important; line-height: 1.3 !important; word-break: normal; }
  .et_pb_text_2 { padding-left: 15px !important; padding-right: 15px !important; }
  /* long e-mail address in the info cards */
  .dnxte_blurb .dnxt-blurb-description a[href^="mailto"] { font-size: 14px; word-break: break-all; }
}
@media (max-width: 767px) {
  .et_pb_module a[href^="mailto:"] { font-size: 14px !important; letter-spacing: 0 !important; }
}
/* 2025 Maha Sivarathiri YouTube video – responsive 16:9 (desktop + phone) */
.et_pb_video_0 { max-width: 900px; margin: 0 auto; }
.kvt-video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; height: auto !important; padding: 0 !important; background: #000; border-radius: 4px; overflow: hidden; }
.kvt-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
