* {
  margin: 0;
  box-sizing: border-box;
}
:root {
  --pagecolor: rgb(242, 205, 158);
  --frame-font: rgb(169, 114, 13);
  --scale: transform 0.8s;
}
.meta-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-col {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  min-width: 150px;
}

.meta-col strong {
  color: #444;
}

/* Uniform rectangular cards */
.info-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Headings inside cards */
.info-card h3 {
  margin-bottom: 12px;
  color: #9c2b2b; /* Maroon accent */
  font-weight: 700;
}

/* Content text inside the Province Introduction */
.info-content {
  color: #555;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Genealogy Tree inside the card */
.info-card .tree {
  padding: 12px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px dashed #ddd;
  overflow-x: auto;
}

body {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.headbanner {
  background-image: linear-gradient(
    to bottom right,
    rgba(18, 16, 14, 1),
    rgb(50, 76, 114, 1)
  );
  align-items: center;
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  height: 10rem;
  position: relative;
  z-index: 998;
  padding: 1rem 1rem;
  overflow: visible;
}

.insignia {
  display: flex;
  flex-direction: row;
  transition: var(--scale); /* Animation duration */
}
.insignia:hover {
  transform: scale(1.1);
}

.insignia-img {
  max-height: 9rem;
  max-width: 9rem;
  width: auto;
}

.pagename {
  font-size: 10rem;
  color: var(--pagecolor);
  letter-spacing: 0.18cm;
  text-shadow: 0 3px 5px #000000, 0 5px 7px #fdd489;
  margin: 1rem;
  padding: 0 0 0 4%;
  transition: text-shadow 0.4s 0.2s, color 0.3s;
}
.pagename:hover {
  text-shadow: 0 4px 3px #000000, 0 6px 5px #fdd489;
  color: rgb(244, 209, 167);
}
.pagename h1:hover {
  color: rgb(244, 209, 167);
  text-shadow: 0 4px 3px #000000, 0 6px 5px #fdd489;
}
/* fly icons */

.flyicon {
  padding: 5px 10px;
  margin: 10px;
  display: flex;
  justify-content: center;
}

.flyicon ul {
  display: flex;
  flex-wrap: wrap; /* Allows icons to wrap on small screens */
  justify-content: center;
  gap: 7px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.flyicon ul li {
  position: relative;
  list-style: none;
  width: 30px;
  height: 30px;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(to bottom right, #1d2c41, #324c72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flyicon ul li:hover {
  width: 90px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0);
}

.flyicon ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 35px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
}

.flyicon ul li:hover::before {
  opacity: 1;
}

.flyicon ul li::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
}

.flyicon ul li:hover::after {
  opacity: 0.5;
}

.flyicon ul li ion-icon {
  color: var(--pagecolor);
  font-size: 1.1em;
  transition: 0.5s;
  transition-delay: 0.25s;
}

.flyicon ul li:hover ion-icon {
  transform: scale(0);
  color: #fff;
  transition-delay: 0s;
}

.flyicon ul li span {
  position: absolute;
}

.flyicon ul li .title {
  color: #0a2043;
  letter-spacing: 0.09em;
  text-transform: capitalize;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
  font: normal normal bold 10px trebuchet ms;
  color: #091d3d;
}

.flyicon ul li:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}
/* Hide .share-icons by default */
.share-icons {
  display: none;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

/* On active state */
.share-toggle.active {
  justify-content: space-evenly;
}

/* Hide original icon on expand */
.share-toggle.active .icon ion-icon {
  display: none;
}

/* Hide "Share" text on expand */
.share-toggle.active .title {
  display: none;
}

/* Show share icons on expand */
.share-toggle.active .share-icons {
  display: flex;
}

.share-toggle.active .share-icons a ion-icon {
  color: #0a2043;
  transform: scale(1);
}

.share-icons a:hover ion-icon {
  transform: scale(1.2);
}
.share-toggle.active:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.share-toggle.active:hover ion-icon {
  transform: scale(1);
  color: #0a2043;
}
.share-toggle.active:hover::after .share-icons {
  display: none;
}

.share-toggle {
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom right, #1d2c41, #324c72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.4s ease;
  height: 100%;
  width: 100%;
}
.share-toggle::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
}

.share-toggle:hover::after,
.share-toggle.active::after {
  opacity: 0.5;
}
.share-toggle .icon,
.share-toggle .share-title {
  position: static;
  text-align: center;
  display: block;
  width: 100%;
}
.share-title {
  font: normal normal bold 10px "Trebuchet MS", sans-serif;
  color: #091d3d;
  letter-spacing: 0.09em;
  text-transform: capitalize;
}

.tabs {
  background: linear-gradient(to top, #e6b980 0%, #eacda3 100%);
  min-height: 29px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: sticky;
  transition: top 0.3s ease;
  z-index: 999;
}
.tabs.fixed {
  position: fixed;
  top: 0;
  left: 0;
}
.button {
  display: inline-block;
  text-align: center;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  vertical-align: middle;
  padding: 7px 10px;
  border: 0px solid #0a2043;
  border-radius: 0px;
  background: linear-gradient(to top, #e6b980 0%, #eacda3 100%);
  font: normal normal bold 13px trebuchet ms;
  color: #091d3d;
  text-decoration: none;
}
.button:hover,
.button:focus {
  border: 0px solid #0b244a;
  background: #ffe39e;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#ffe39e),
    to(#ffffff)
  );
  background: -moz-linear-gradient(top, #ffe39e, #ffffff);
  background: linear-gradient(to bottom, #ffe39e, #ffffff);
  color: #091d3d;
  text-decoration: none;
}
.button:active {
  background: #8b714f;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#8b714f),
    to(#f5efe7)
  );
  background: -moz-linear-gradient(top, #8b714f, #f5efe7);
  background: linear-gradient(to bottom, #8b714f, #f5efe7);
}

.intro {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/sheopur.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 10px;
  min-height: 65vh;
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 1px #ffe7a1, 0 0 3px #000001;
  box-shadow: 0px 25px 20px -20px rgba(0, 0, 0, 0.6);
}
.intro p::first-letter {
  font-size: 1.8rem;
  font-weight: bold;
}

.home_objects {
  background: linear-gradient(
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.6)
    ),
    url("../images/cover.jpg");
  background-repeat: repeat;
  background-size: contain;
  box-shadow: 1px 1px 15px rgb(68, 67, 67) inset;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* spacing between frames */
  padding: 2rem;
}
.home_objects .frame {
  box-shadow: 1px 1px 12px rgb(68, 67, 67);
  margin: 40px 10px;
  padding: 10px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: linear-gradient(1155deg, rgb(243, 233, 225), rgb(255, 255, 255));
  color: var(--frame-font);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9rem;
  transition: all 0.5s;
  flex: 1 1 30%;
  min-width: 280px;
  max-width: 400px;
}
.home_objects .frame .bullets {
  display: block;
  margin: 8px;
  margin-bottom: 20px;
  padding-left: 10px;
  height: 10px;
  font-weight: bold;
}
.privacyandtc {
  background:
    linear-gradient(
      rgba(255,255,255,0.88),
      rgba(255,255,255,0.88)
    ),
    url("../images/cover.jpg");
  background-size: contain;
  background-repeat: repeat;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0.5rem;
}
.blog-bullets {
  display: block;
  margin: 8px;
  margin-bottom: 20px;
  padding-left: 10px;
}
/* Container stays constrained */
.blog-text {
  margin-left: 10px;
  overflow: hidden;
}

/* Title link */
.blog-text a {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  color: black;
  text-decoration: none;
  line-height: 1.3;

  /* allow wrapping */
  white-space: normal;
  word-break: break-word;
}

/* Desktop: keep title single-line */
@media (min-width: 768px) {
  .blog-text a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Preview text stays trimmed */
.blog-text .preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blog content responsive fix */
.blog-content img {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Stop any wrapper from overflowing */
.blog-content,
.blog-content * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Kill wrapper widths (tables, divs, p, etc.) */
.blog-content p,
.blog-content div,
.blog-content table,
.blog-content figure {
  max-width: 100% !important;
}

/* Tables from editor often cause overflow */
.blog-content table {
  width: 100% !important;
  table-layout: fixed;
}

.home_objects .frame a {
  text-decoration: none;
  color: var(--frame-font);
  font-family: Georgia, "Times New Roman", Times, serif;
}
.home_objects .frame a:hover {
  color: rgb(201, 145, 42);
  text-shadow: 0 0px 0px #f2e4c2, 0 0px 0px #f9deb5;
}

.heading {
  color: rgba(159, 16, 45, 1);
  text-shadow: 0 1px 3px #faf4d4, 0 2px 5px #f39b4e;
  font-size: 2rem;
  text-decoration: none;
  text-align: center;
  text-transform: capitalize;
  padding-top: 1.2rem;
}

.write {
  position: relative;
  margin: 10px;
}
.write .form form {
  color: rgb(252, 214, 147);
  font: normal normal 13px trebuchet ms;
  text-shadow: 0 0 2px #0a0a0a, 0 0 3px #fdfdfd;
  text-decoration: none;
  padding-left: 20px;
  padding-top: 50px;
  padding-bottom: 150px;
  margin: 10px;
}
.write .form {
  display: flex;
  background: linear-gradient(
      rgba(251, 251, 251, 0.5),
      rgba(250, 250, 250, 0.5)
    ),
    url("../images/contactform.jpg");
  background-repeat: no-repeat;
  background-size: auto;
  background-attachment: fixed;
  box-shadow: 1px 1px 10px 12px rgb(255, 255, 255) inset;
  position: relative;
}
.write .form label {
  color: rgba(172, 37, 64, 1);
  font: normal normal bold 14px trebuchet ms;
  text-decoration: none;
}
.form_img {
  display: flex;
  position: relative;
  background: url("../images/vijaystambh.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
  box-shadow: 1px 1px 10px 12px rgb(255, 255, 255) inset;
  opacity: 0.9;
  height: auto;
  margin: 10px;
}
textarea {
  width: 100%;
  max-width: 100%; /* prevents overflow */
  box-sizing: border-box; /* includes padding and border in width */
  resize: vertical; /* only allow vertical resize */
}
#topicon {
  margin: 2px;
  margin-left: 10px;
  box-sizing: border-box;
  display: inline;
  transition: var(--scale);
}
#topicon:hover {
  transform: scale(1.2);
}
.foot {
  background-image: linear-gradient(
    to bottom right,
    rgb(18, 16, 14),
    rgb(43, 65, 98)
  );
  height: fit-content;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  color: floralwhite;
}

.foot h4 {
  color: #f2cd9e;
  font-size: 1rem;
  padding: 10px;
}

.foot a {
  color: #ffff;
  text-decoration: none;
  size: 0.2rem;
}

.foot a:hover {
  color: #f1dcb4;
}
.foot ul:hover {
  color: #f1dcb4;
}

.foot img {
  width: 100px;
  height: 100px;
  float: left;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 8px;
}

.aboutus {
  font-size: 0.9rem;
  text-align: justify;
}
.aboutus p::first-letter {
  font-size: 1.8rem;
  font-weight: bold;
}

/* font styles from google fonts */

.sorts-mill-goudy-regular-italic {
  font-family: "Sorts Mill Goudy", serif;
  font-weight: 400;
  font-style: italic;
}

.sorts-mill-goudy-regular {
  font-family: "Sorts Mill Goudy", serif;
  font-weight: 400;
  font-style: normal;
}

.philosopher-bold {
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.im-fell-english-sc-regular {
  font-family: "IM Fell English SC", serif;
  font-weight: 400;
  font-style: normal;
}

.sedan-sc-regular {
  font-family: "Sedan SC", serif;
  font-weight: 400;
  font-style: normal;
}

/* Seacrh engine */

.gsc-control-cse {
  padding: 0px !important;
  border-width: 0px !important;
}

form.gsc-search-box,
table.gsc-search-box {
  margin-bottom: 0px !important;
}

.gsc-search-box .gsc-input {
  padding: 0px 4px 0px 6px !important;
}

#gsc-iw-id1 {
  height: auto !important;
  padding: 0px !important;
  border-width: 0px !important;
  box-shadow: none !important;
}

#gs_tti50 {
  padding: 0px !important;
}

#gsc-i-id1 {
  height: 22px !important;
  padding: 0px !important;
  background: none !important;
  text-indent: 0px !important;
  font-size: 12px;
}

.gsib_b {
  display: none;
}

button.gsc-search-button {
  display: block;
  width: 11px !important;
  height: 11px !important;
  border-width: 0px !important;
  margin: 0px !important;
  padding: 8px 8px 8px 8px !important;
  outline: none;
  cursor: pointer;
  box-shadow: none !important;
  box-sizing: content-box !important;
  background: linear-gradient(to top, #e6b980 0%, #eacda3 100%) !important;
  border-radius: 25px;
}
button.gsc-search-button:hover {
  background: linear-gradient(to top, #e4b876 0%, #ffefd2 100%) !important;
}

.gsc-branding {
  display: none !important;
}

.gsc-control-cse,
#gsc-iw-id1 {
  background: linear-gradient(to top, #f1e4d1 0%, #ffffff 100%) !important;
  border-radius: 29px;
  height: 25px;
  margin: 1px;
  box-shadow: 1px 1px 5px rgb(96, 95, 95) inset;
}

/* Changing placeholder color of search box */
#gsc-i-id1::-webkit-input-placeholder {
  /* Chrome */
  color: #978f8f;
}

#gsc-i-id1:-ms-input-placeholder {
  /* IE 10+ */
  color: #978f8f;
}

#gsc-i-id1::-moz-placeholder {
  /* Firefox 19+ */
  color: #978f8f;
  opacity: 1;
}

#gsc-i-id1:-moz-placeholder {
  /* Firefox 4 - 18 */
  color: #978f8f;
  opacity: 1;
}

/* Blue Box */
#blue-searchbox {
  max-width: 115px;
  height: 29px;
  margin: 0 auto;
  background: linear-gradient(to top, #e6b980 0%, #eacda3 100%);
  border-radius: 29px;
  padding: 1px 1px;
}
#blue-searchboxbutton .gsc-search-button {
  border-left: 1px solid #af7b01 !important;
  background-color: transparent !important;
}

#blue-searchbox #gsc-i-id1 {
  color: #2c2b2b;
}

.testimonials {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: linear-gradient(
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.3)
    ),
    url("../images/testcover.jpg");
  background-position: center;
  background-size: contain;
  background-repeat: repeat;
  box-shadow: 1px 1px 15px rgb(68, 67, 67) inset;
}
.testimonials h2 {
  margin: 30px;
  margin-bottom: 10px;
}
.testimonials .t {
  white-space: pre-wrap;   /* 👈 preserves spaces */
  margin: 20px;
  box-shadow: 1px 1px 12px rgb(107, 107, 106);
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(115deg, rgb(248, 248, 237), rgb(253, 253, 253));
  font-style: italic;
  color: #635643;
  font-size: 1.1rem;
  border: 1px solid #ffffff;
}
.testimonials .t:hover {
  background: linear-gradient(265deg, rgb(248, 248, 237), rgb(253, 253, 253));
  box-shadow: 1px 1px 12px rgba(107, 107, 106, 0.4);
  color: #816c4e;
}
.entry form label {
  font-size: smaller;
}
.entry {
  padding-left: 2rem;
  padding-right: 2rem;
  background: linear-gradient(115deg, rgb(250, 250, 232), rgb(253, 253, 253));
}
.board {
  min-height: fit-content;
  padding: 1rem;
  background: linear-gradient(
      rgba(255, 255, 255, 0.64),
      rgba(255, 255, 255, 0.5)
    ),
    url("../images/board.jpg");
  background-repeat: repeat;
  background-size: contain;
  font-weight: 400;
  box-shadow: 1px 1px 15px rgb(49, 48, 48);
  gap: 0.5rem;
}
.board-btn {
  background: linear-gradient(to top, #e6b980 0%, #eacda3 100%);
  height: 2rem;
  border-radius: 4px;
  font: normal normal bold 1rem trebuchet ms;
  color: #091d3d;
  border-color: white;
  border-width: 0.09rem;
}

/* Overlay */
.video-modal {
  display: none !important;          /* MUST be hidden by default */
  position: fixed !important;
  inset: 0 !important;               /* replaces top/left/width/height */
  background: rgba(0,0,0,0.7) !important;
  z-index: 999999 !important;         /* higher than headers/nav */
}

/* Centered modal box */
.video-modal-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 80% !important;
  max-width: 720px !important;
  background: #000 !important;
  padding: 10px !important;
  box-sizing: border-box;
}

/* Video itself */
.video-modal video {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Close button */
.video-close {
  position: absolute !important;
  top: -12px !important;
  right: -12px !important;
  background: #fff !important;
  color: #000;
  border-radius: 50% !important;
  padding: 6px 10px !important;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 1000000 !important;
}



@media (max-width: 786px) {
  .headbanner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 5px 10px;
    min-height: fit-content;
  }

  .insignia {
    width: 80px;
    padding: 0;
    margin: 0;
  }

  .insignia-img {
    max-width: 80px;
    height: auto;
  }

  .pagename {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
  }

  .pagename h1 {
    font-size: 1.5rem;
    margin: 0;
  }

  .flyicon {
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .flyicon ul {
    gap: 5px;
  }

  .flyicon li {
    font-size: 0.7rem;
    padding: 0 4px;
  }

  .flyicon .icon {
    font-size: 1rem;
  }

  .form_img {
    display: none !important; /* optional: hide text on small screens */
  }
}
