/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.corner-border {
  position: relative;
/*   display: inline-block; */
  padding: 40px 60px;
/*   background: #f9f9f9;
  font-size: 18px; */
}

/* Top-left curved corner */
.corner-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;   /* size of the curve */
  height: 40px;
  border: 3px solid black;
  border-right: none;
  border-bottom: none;
  border-radius: 100% 0 0 0;  /* quarter circle */
}

/* Bottom-right curved corner */
.corner-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;   /* size of the curve */
  height: 40px;
  border: 3px solid black;
  border-top: none;
  border-left: none;
  border-radius: 0 0 100% 0;  /* quarter circle */
}





/* Family members table */
table.family-members {
  width: 100%;
  border-collapse: collapse; /* removes gap between header and first row */
}

/* Header */
table.family-members thead th {
  text-align: center;
  padding: 10px;
  background: #f5f5f5;
  font-weight: bold;
  position: relative;
  font-family: 'Century Gothic';
}

/* Row styling */
table.family-members tbody tr {
  font-family: 'Century Gothic';
  text-align: center;
  background: rgba(0, 0, 0, 0.05); /* subtle black overlay */
}

/* Table cells */
table.family-members th,
table.family-members td {
  padding: 12px 15px;
  position: relative;
}

/* Bold vertical dividers */
table.family-members th:not(:last-child),
table.family-members td:not(:last-child) {
  border-right: 3px solid #000;
}

/* Circles on top of dividers */
table.family-members thead th:not(:last-child)::after,
table.family-members tbody tr:last-child td:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  z-index: 1;
}

table.family-members thead th:not(:last-child)::after {
  top: -6px; /* circle above header */
}

/* Circles on bottom of last row dividers */
table.family-members tbody tr:last-child td:not(:last-child)::after {
  bottom: -6px !important; /* circle below last row */
}


.bold {
	font-weight: bold;
}

@media screen and (max-width: 768px) {
  .family-members,
  .medical-conditions,
  .family-members thead,
  .medical-conditions thead,
  .family-members tbody,
  .medical-conditions tbody,
  .family-members th,
  .medical-conditions th,
  .family-members td,
  .medical-conditions td,
  .family-members tr,
  .medical-conditions tr {
    display: block;
    width: 100%;
  }

  .family-members thead tr,
  .medical-conditions thead tr {
    display: none; /* hide headers on mobile */
  }

  .family-members tr,
  .medical-conditions tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
  }

  .family-members td,
  .medical-conditions td {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .family-members td:last-child,
  .medical-conditions td:last-child {
    border-bottom: none;
  }

  .family-members td::before,
  .medical-conditions td::before {
    content: attr(data-label);
    font-weight: bold;
    flex-basis: 50%;
    text-align: left;
    padding-right: 10px;
  }
}

footer {
	display: none;
}