
/* =========================
   ABOUT PAGE HERO (curtains bg + centered video)
   v6 update 2025-09-13:
   - Desktop curtain width 90%
   - Video width reduced to 26% to fit white space cleanly
   - No rounded corners, add 5px black border
   ========================= */
   
.about-footer-table {width:90%;max-width:875px}
.about-footer-table-txt {font-size: 30px;font-family: Century Gothic, CenturyGothic, Geneva, AppleGothic, sans-serif;}
   
.about-hero{
  width: 90%;
  margin: 0 auto;
  position: relative;
  background-image: url('../images/about-us-page-background.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  min-height: 72vh;
  padding-bottom: 100px;
}

.about-hero__video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 110px;
  width: 26%;              /* keep same width */
  height: calc((26vw * 9 / 16) + 100px);  /* base 16:9 height + 100px */
  background: #000;
  border: 5px solid #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.about-hero__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

    .banner2 {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #ccc;
      height: 200px;
      background-image: url('../images/banner.jpg');
      background-size: cover;
      background-position: center;
      margin: 1rem;
    }
	  
	.banner {width:100%;padding:0px;}

    * {
      box-sizing: border-box;
    }
    body {
      font-family: Arial, sans-serif;
		margin: 5px;
    padding: 5px;
    }


.cloudbox {
	background-image: url("../images/cloud-background.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	width:100%;
	min-height:500px;
	font-size:18px;
	padding:80px 80px 95px 90px;
	max-width:90%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	z-index: 1;
}

.cloudbox-2 {
	background-image: url("../images/cloud-background-2.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	width:1200px;
	max-width:90%;
	min-height:600px;
	font-size:18px;
	padding:150px 0px 95px 90px;
	max-width:100%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	z-index: 1;
}

.cloudbox-2-table
{
	width:800px;max-width:90%
}

.cloudbox-3 {
	background-image: url("../images/cloud-background-3.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	width:1200px;
	min-height:500px;
	font-size:18px;
	padding:80px 80px 95px 90px;
	max-width:90%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	z-index: 1;
}

.cloudbox-4 {
	background-image: url("../images/cloud-background-3.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	width:550px;
	min-height:300px;
	font-size:18px;
	padding:50px 30px 50px 30px;
	max-width:90%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	text-align: center;
}

.cloudbox-account {
	background-image: url("../images/cloud-background-3.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	/*width:1250px;*/
	min-height:500px;
	font-size:18px;
	padding:200px 80px 100px 90px;
	max-width:90%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	z-index: 1;
}

.cloudbox-edit-account {
	background-image: url("../images/cloud-background-4.jpg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	/*width:1250px;*/
	min-height:500px;
	font-size:18px;
	padding:200px 100px 195px 100px;
	max-width:90%;
	margin:0 auto;
	border:0px #000 solid;
	position: relative;
	z-index: 1;
}



.container {
      max-width: 100%;
      margin: 0 auto;
}

.create_account_button {
  background: #1755b1 !important;
  color: #fff !important;
  padding: 10px 20px 10px 20px !important;
  border: 0px !important;
  font-size:18px;
  font-weight:bold;
  border-radius: 20px !important;
}

.dotted-divider 
{
	background-image: url("../images/dotted-background.png");
	width:90%;
	height:14px;
	background-repeat: repeat-x;
	margin:35px auto;
}

.footer {text-align: center;padding-bottom:25px;}

/* === Lightbox (templates sidebar) ================================== */
.lb-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);display:none;align-items:center;justify-content:center;z-index:9999;}
.lb-overlay.open{display:flex;}
/* === Lightbox Fixes === */
/* === Lightbox Modal Image Fit === */
.lb-modal {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-modal img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* ensures entire image fits */
  display: block;
}
/* Close button in upper right corner */
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d00;   /* red background */
  color: #fff;        /* white X */
  font-weight: bold;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.95;
}
.lb-close:hover {
  opacity: 1;
  background: #b00;
}
/* =================================================================== */

#login_guest_panel {display:none;}

.login-table {width:100%;}

.main-container {padding:0 16px;margin:24px;}

.map-img {
  width: 100%;
  max-width: 350px;  /* default max */
  height: auto;
  display: block;
  margin: 0 auto;
}

.my-account-button
{width:150px;
height:126px;
display:inline-block;
margin:20px;
vertical-align: top;
padding-top:26px;	
}

.my-account-button img {width:100%;height:100%}

.my-account-button-2
{width:195px;
height:126px;
display:inline-block;
margin:20px 0px 20px 20px;
background-image: url("../images/buttons/view-a-message-button.png");
background-repeat: no-repeat;	
background-size: 100% 100%;
vertical-align: top;
text-align: right;
padding: 10px 40px 0px 0px;	
box-sizing: border-box;
}

.my-account-button-2 img {width:100%;height:100%}

.my-account-button-2 a {text-decoration: none;color:#000;}

/* Make the textarea responsive */
.note{
  width: 100%;            /* fill the container */
  box-sizing: border-box; /* include padding in width */
  height: clamp(9rem, 30vh, 18rem); /* responsive height */
  padding: 12px;
  font: inherit;
  /*line-height: 1.4;*/
  resize: vertical;       /* allow user to grow/shrink vertically */
  max-width: 100%;        /* prevent overflow on small screens */
  border-radius: 10px;
}

/* Optional tweak for very small phones */
@media (max-width: 400px){
  .note{ height: clamp(8rem, 35vh, 14rem); }
}

.pick-template-box {display: inline-block;margin:20px;width:300px;}
.pick-template-box img {width:100%;height:auto;}

/* ============== SEARCH PAGE ================= */

	.cloudbox-3.results {
		font-size: 1.8em;
		text-align: center;
	}

	.no-titlebar .ui-dialog-titlebar {
        	display: none;
    	}

	.no-titlebar .ui-dialog-buttonpane {
    		border-top: 0;
	}

.tableheader input[type="text"], .tableheader .state, #checkout_formelement, .sel1  {
  border-radius: 20px;
  padding: 10px;
  margin:5px;
  background-color: #5ce1e6;
  border:0px;
}

.tableheader {padding:10px;}

h1 {margin:0px;padding:0px;}
input[type="checkbox"] {
  transform: scale(1.5); /* Adjust scale as needed */
  margin-right: 8px;     /* Optional: Adds space between box and label */
}



    .header {
      text-align: center;
      padding: 1rem;
    }
    .header img.logo {
      width: 200px;
      float: left;
      margin-left: 1rem;
	  margin-top:30px;	
    }
    .header img.teacher-photo {
      width: 200px;
      border-radius: 5%;
      float: right;
      margin-right: 1rem;
    }
    .clearfix::after {
      content: "";
      clear: both;
      display: table;
    }


.logocell {padding:10px 0px 0px 20px;}

	.section-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 1rem;
      flex-wrap: wrap;
    }
    .box {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 20px;
      padding: 1rem;
      position: relative;
    }
    .contact-box {
      width: 619px;
      height: 633px;
    }

.my-account-top-fields
{
	background:#8cb7c8;
	font-size:20px;
	font-weight: bold;
	border-radius: 30px;
	text-align: center;
	padding:20px;
	display:inline-block;
	width:400px;
	margin:10px 50px 10px 50px;
}

.nonprofit-bottom-boxes {
  display: flex;
  justify-content: space-between; /* Even spacing between images */
  align-items: flex-start;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  padding: 20px;
}

.nonprofit-bottom-boxes img {
  flex: 1 1 22%;           /* Grow, shrink, base size ~25% minus spacing */
  max-width: 350px;        /* Limit max size */
  width: 100%;             /* Responsive inside its flex space */
  margin: 0 10px;          /* Optional: add some space between images */
  box-sizing: border-box;  /* Prevents overflow from padding/margin */
}

.nonprofit-row2-pic1 {width:90%;max-width:400px;}
.nonprofit-row2-pic2 {width:90%;max-width:600px;}

.nonprofit-top-images {
  width: 100%;
  table-layout: fixed; /* Ensures equal cell widths */
  border-collapse: collapse; /* Optional for tighter layout */
}

.nonprofit-top-images td {
  width: 16.66%; /* 100% / 6 cells = ~16.66% */
  text-align: center; /* Optional: center the image */
  padding: 10px; /* Optional: spacing */
}

.nonprofit-top-images td img {
  width: 95%;
  height: auto;
  display: block; /* Removes bottom spacing in some browsers */
  margin: 0 auto; /* Center image if it's smaller than 95% */
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
}


    .note-box {
      width: 402px;
      height: 633px;
    }
    .other-box {text-align: center;padding:150px 30px 0px 30px;font-size:20px;font-weight: bold;box-sizing: border-box;}
    .box img {
      display: none;
    }

.search-field {padding:10px;margin:15px;border-radius: 30px;border:0px;font-size:17px;width:200px;text-align: center;}

.search-field::placeholder {
  text-align: center;
  font-weight: bold;
}

/* Vendor prefixes for broader browser support */
.search-field::-webkit-input-placeholder {
  text-align: center;
  font-weight: bold;
}
.search-field:-ms-input-placeholder {
  text-align: center;
  font-weight: bold;
}
.search-field::-ms-input-placeholder {
  text-align: center;
  font-weight: bold;
}

/* Make placeholders that include an asterisk render in red */
.search-field[placeholder*="*"]::placeholder { color: #d00; }
.search-field[placeholder*="*"]::-webkit-input-placeholder { color: #d00; }
.search-field[placeholder*="*"]:-ms-input-placeholder { color: #d00; }
.search-field[placeholder*="*"]::-ms-input-placeholder { color: #d00; }


.signup-video {
    width: 210px;
    height: 169px;
    margin: 0px 0px 330px 70px;}

.socialbutton {width:50px; height:50px;}

.socialicons {padding:10px 20px 0px 0px;}

.socialicons img {width:50px;height:50px;display:inline-block;margin:10px;}

    .starbursts {position: relative;z-index: 10;margin-top:-100px;}
    
    .sticky-box-1 {
      width: 360px;
      height: 400px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      border-radius: 10px;
    }
    .sticky-box-2 {
      width: 360px;
      height: 300px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      border-radius: 10px;
    }
    .sticky-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
 	  position: relative;
      margin-top: -14px;	
    }
    .theworld-bak {font-weight: bold;font-size:22px;font-style: italic;}

    .topbutton {width:100%;height:auto;}

.topnav {
	text-align: center;
}

.topnav img {width:150px;display:inline-block;padding:10px 20px 10px 20px;}
    


/* === Additions: layout for hero (cloud left + images right), search grid, promo column, bottom CTA === */

/* Two-column hero: cloud left, images right */
.hero-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px; /* cloud | right column */
  column-gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 1300px;
  /*margin: 24px auto 0;*/
  margin:0 auto;
  padding: 0 12px;
  transform: translateX(-50px);
}

/* Keep legacy cloud visuals; only scope adjustments when inside hero-row */
.hero-row .cloudbox-3{
  width: auto;
  max-width: 100%;
  margin: 50px 0;
  text-align: center;
  padding: 60px 40px 70px 40px; /* ensure room for form */
}

/* Search title + 2x2 grid on desktop */
.search-title{ display:block; font-size:40px; font-weight:700; margin:10px 0 6px; }
.search-form{ text-align:center; }
.search-form .fields{
  display:grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
  width:100%;
  max-width:640px;
  margin: 0 auto;
}
/* Respect legacy .search-field, but fill grid cells inside the form */
.search-form .fields .search-field{ width:100%; }

.search_button{ display:inline-block; }
.search-note{ padding: 0 20px; margin-top: 14px; }

/* Right column images */
.promo-col-outer{ width: 260px;}
.promo-col-outer img{
  display:block;
  width:250px;
  height:auto;
  margin-bottom:18px;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.promo-col-outer img:last-of-type {
  box-shadow: none;
  margin-top:-20px;
}
.promo-title{
  font-weight:800;
  color:#d11212;
  text-align:center;
  margin: 0 0 10px 0;
  font-size: 16px;
  letter-spacing: .3px;
}

/* Bottom three images row (new markup) */
.cta-row{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
  width: 90%;
  max-width: 1300px;
  margin: 28px auto 40px;
  flex-wrap: wrap;
}
.cta-card img{
  display:block;
  width: 100%;
  max-width: 350px;
  height: auto;
}



/* ===== LIGHTBOX ENFORCED SIZING (800x800 desktop, responsive down) ===== */
.lb-modal{
  width: min(800px, 90vw);
  height: min(800px, 90vh);
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.lb-modal img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/*================== HEADER ========================= */

/* === Header v5: single-line desktop, right-aligned nav, 80px icons === */
:root{
  --nav-red:#ea3a37;
  --bg:#ffffff;
  --text:#2b2b2b;
  --border:rgba(0,0,0,.08);
  --break:1200px;
  --nav-h: 62px;                   /* red bar height */
  --gap: clamp(8px, 1.2vw, 16px);  /* grid gap */
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}

.site-header{position:sticky;top:0;z-index:50;background:#ffffffe6;border-bottom:1px solid var(--border);backdrop-filter:saturate(160%) blur(6px)}

/* Desktop layout: logo | red nav | icons on ONE row */
.header-grid{
  display:grid;
  grid-template-columns:max-content 1fr max-content;
  align-items:center;
  gap:var(--gap);
  padding:8px 16px;
  width:100%;
}

/* Hamburger hidden on desktop */
.hamburger{display:none;appearance:none;border:1px solid var(--border);background:#fff;color:#333;height:40px;width:48px;border-radius:12px;place-items:center;cursor:pointer}
.hamburger-bars{position:relative;width:18px;height:2px;background:currentColor}
.hamburger-bars::before,.hamburger-bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor}
.hamburger-bars::before{top:-6px}.hamburger-bars::after{top:6px}

/* Logo */
.brand img{height:clamp(120px, 12vw, 180px);width:auto;display:block}

.signup-box
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  vertical-align: top;
}

.signup-box img {width:100%;height:100%;}

.signup-box-youtube
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  background-image: url(../images/sign-up-why-sign-up.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  vertical-align: top;
  box-sizing: border-box;
  padding-top:120px;
}

.signup-box-youtube-video {width:250px; height:150px;border-radius:10px;}

/* Red bar */
.top-nav{
  background:var(--nav-red);
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:flex-end;              /* right-align links */
  gap:clamp(18px,2.2vw,28px);
  padding:0 16px;
}
.top-nav a{
  text-decoration:none;
  color:#111;
  font-weight:600;
  font-size:clamp(16px,1.35vw,20px);
  white-space:nowrap;
  transition: color .15s ease;
}
.top-nav a:hover{ color:#fff; }

/* tagline in red nav (desktop) */
.top-nav .theworld{
  font-style: italic;
  font-size: 18px;
  color: #fff;
  margin-right: auto;   /* pushes nav links right */
  white-space: nowrap;
  font-weight:bold;
}

/* Desktop socials: 80x80 inline with bar */
.socials-desktop{display:flex;align-items:center;gap:12px}
.socials-desktop a{display:inline-flex;width:70px;height:70px;align-items:center;justify-content:center}
.socials-desktop img{width:70px;height:70px;object-fit:contain;display:block}

/* ===== Mobile (≤800px) — reuse drawer ===== */
@media (max-width: 800px){
  .header-grid{
    grid-template-columns:48px 1fr 48px;
  }
  .hamburger{display:grid;grid-column:1}
  .brand{grid-column:2;display:flex;justify-content:center}
  .top-nav,.socials-desktop{display:none}
  /* Mobile drawer tagline appearance */
  .drawer-tagline{
    display:block;
    padding:10px 16px 0;
    font-style: italic;
    color: var(--nav-red);
    font-size: 15px;
	font-weight:bold;
	text-align:center;
  }
}

/* Overlay + Drawer (copied from your current build) */
.overlay{position:fixed;inset:0;display:none;background:rgba(0,0,0,.45);z-index:60}
.overlay.active{display:block}
.drawer{
  position:fixed;left:0;top:0;bottom:0;
  height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;
  width:min(86vw,380px);
  background:#fff;border-right:3px solid #ff944d;
  transform:translateX(-100%);transition:transform .28s ease;
  display:grid;grid-template-rows:auto 1fr auto;z-index:61;overflow:hidden;
}
.drawer.open{transform:translateX(0)}
.drawer-header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--border)}
.drawer-title{font-weight:800;background:linear-gradient(90deg,#8fbf6a,#6bb86b,#ff944d,#ff6a5e,#ff6fb6);-webkit-background-clip:text;background-clip:text;color:transparent}
.close-btn{appearance:none;border:1px solid var(--border);background:#fff;color:#3a2a26;height:40px;width:44px;border-radius:10px;display:grid;place-items:center;cursor:pointer}
.close-btn svg{width:18px;height:18px}
.drawer-nav{padding:10px 10px 14px;overflow:auto;min-height:0}
.drawer-nav a{display:block;padding:12px 16px;border-radius:10px;color:#3a2a26;text-decoration:none}
.drawer-nav a:hover{background:rgba(0,0,0,.04)}

.social-row{position:relative;padding:22px 16px calc(28px + env(safe-area-inset-bottom, 0));display:flex;flex-direction:column;align-items:center;gap:14px}
.follow-label{font-weight:800;color:#3a2a26;text-align:center;letter-spacing:.2px;text-transform:uppercase;font-size:.95rem}
.social-icons{display:flex;gap:10px;justify-content:center;flex-wrap:nowrap}
.social-icons a{height:46px;width:46px;border:none;background:transparent;padding:0}
.social-icons img{height:28px;width:auto;display:block}

/* Scroll lock */
html, body { max-width: 100%; overflow-x: hidden; }
html.drawer-open, html.drawer-open body { overflow: hidden; height: 100%; }

/* Desktop offset per previous request */
.top-nav{ margin-top:61px; }
.socials-desktop{ margin-top:61px; }

/* ================== HEADER ========================= */

/* === Header v5: single-line desktop, right-aligned nav, 80px icons === */
:root{
  --nav-red:#ea3a37;
  --bg:#ffffff;
  --text:#2b2b2b;
  --border:rgba(0,0,0,.08);
  --break:800px;
  --nav-h: 62px;                   /* red bar height */
  --gap: clamp(8px, 1.2vw, 16px);  /* grid gap */
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}

.site-header{position:sticky;top:0;z-index:50;background:#ffffffe6;border-bottom:1px solid var(--border);backdrop-filter:saturate(160%) blur(6px)}

/* Desktop layout: logo | red nav | icons on ONE row */
.header-grid{
  display:grid;
  grid-template-columns:max-content 1fr max-content;
  align-items:center;
  gap:var(--gap);
  padding:8px 16px;
  width:100%;
}

/* Hamburger hidden on desktop */
.hamburger{display:none;appearance:none;border:1px solid var(--border);background:#fff;color:#333;height:40px;width:48px;border-radius:12px;place-items:center;cursor:pointer}
.hamburger-bars{position:relative;width:18px;height:2px;background:currentColor}
.hamburger-bars::before,.hamburger-bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor}
.hamburger-bars::before{top:-6px}.hamburger-bars::after{top:6px}

/* Logo */
.brand img{height:clamp(120px, 12vw, 150px);width:auto;display:block}

.signup-box
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  vertical-align: top;
}

.signup-box img {width:100%;height:100%;}

.signup-box-youtube
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  background-image: url(../images/sign-up-why-sign-up.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  vertical-align: top;
  box-sizing: border-box;
  padding-top:120px;
}

/* Red bar */
.top-nav-bak {
  background:var(--nav-red);
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:flex-end;              /* right-align links */
  gap:clamp(18px,2.2vw,28px);
  padding:0 16px;
}

.top-nav {
  background: var(--nav-red);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 28px);
  padding: 0 16px;

  max-width: 1350px;   /* set the width you want */
  margin: 0 auto;      /* centers the bar */
  border-radius: 3px;  /* optional: add rounded corners */
}

.top-nav a{
  text-decoration:none;
  color:#111;
  font-weight:600;
  font-size:clamp(16px,1.35vw,20px);
  white-space:nowrap;
  transition: color .15s ease;
}
.top-nav a:hover{ color:#fff; }

/* tagline in red nav (desktop) */
.top-nav .theworld{
  font-style: italic;
  font-size: 18px;
  color: #fff;
  margin-right: auto;   /* pushes nav links right */
  white-space: nowrap;
  font-weight:bold;
}

/* Desktop socials: 80x80 inline with bar */
.socials-desktop{display:flex;align-items:center;gap:12px}
.socials-desktop a{display:inline-flex;width:35px;height:35px;align-items:center;justify-content:center}
.socials-desktop img{width:35px;height:35px;object-fit:contain;display:block}



/* Overlay + Drawer (copied from your current build) */
.overlay{position:fixed;inset:0;display:none;background:rgba(0,0,0,.45);z-index:60}
.overlay.active{display:block}
.drawer{
  position:fixed;left:0;top:0;bottom:0;
  height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;
  width:min(86vw,380px);
  background:#fff;border-right:3px solid #ff944d;
  transform:translateX(-100%);transition:transform .28s ease;
  display:grid;grid-template-rows:auto 1fr auto;z-index:61;overflow:hidden;
}
.drawer.open{transform:translateX(0)}
.drawer-header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--border)}
.drawer-title{font-weight:800;background:linear-gradient(90deg,#8fbf6a,#6bb86b,#ff944d,#ff6a5e,#ff6fb6);-webkit-background-clip:text;background-clip:text;color:transparent}
.close-btn{appearance:none;border:1px solid var(--border);background:#fff;color:#3a2a26;height:40px;width:44px;border-radius:10px;display:grid;place-items:center;cursor:pointer}
.close-btn svg{width:18px;height:18px}
.drawer-nav{padding:10px 10px 14px;overflow:auto;min-height:0}
.drawer-nav a{display:block;padding:12px 16px;border-radius:10px;color:#3a2a26;text-decoration:none}
.drawer-nav a:hover{background:rgba(0,0,0,.04)}

.social-row{position:relative;padding:22px 16px calc(28px + env(safe-area-inset-bottom, 0));display:flex;flex-direction:column;align-items:center;gap:14px}
.follow-label{font-weight:800;color:#3a2a26;text-align:center;letter-spacing:.2px;text-transform:uppercase;font-size:.95rem}
.social-icons{display:flex;gap:10px;justify-content:center;flex-wrap:nowrap}
.social-icons a{height:46px;width:46px;border:none;background:transparent;padding:0}
.social-icons img{height:28px;width:auto;display:block}

/* Scroll lock */
html, body { max-width: 100%; overflow-x: hidden; }
html.drawer-open, html.drawer-open body { overflow: hidden; height: 100%; }

/* Desktop offset per previous request */
.top-nav{ margin-top:61px; }
.socials-desktop{ margin-top:61px; }

/* ======================================================== MEDIA RULES ==================================================================== */

@media (max-width: 1800px)
{
.top-nav {
height: var(--nav-h);
gap: clamp(18px, 2.2vw, 28px);
padding: 0 16px;
max-width: 1275px;   /* set the width you want */
}
.top-nav .theworld{
  font-size: 15px;
 }
.top-nav a{
 font-weight:600;
  font-size:clamp(15px,1.35vw,16px);
} 
}

@media (max-width: 1600px)
{
	
/* Logo */
.brand img{height:clamp(120px, 12vw, 130px);width:auto;display:block}
	
.top-nav {
height: var(--nav-h);
gap: clamp(18px, 2.2vw, 28px);
padding: 0 16px;
max-width: 1150px;   /* set the width you want */
}
.top-nav .theworld{
  font-size: 15px;
 }
.top-nav a{
 font-weight:600;
  font-size:clamp(15px,1.35vw,16px);
} 
}

@media (max-width: 1550px)
{
.about-footer-table {width:90%;max-width:800px}
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 2.7vw, 68px);
    padding: 0 16px;
    max-width: 1400px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -250px;
}
}

@media (max-width: 1460px)
{
	
.nonprofit-bottom-boxes img {
  flex: 1 1 22%;
  max-width: 300px;
}	
		
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 2.4vw, 68px);
    padding: 0 16px;
    max-width: 1300px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -250px;
}
}

@media (max-width: 1405px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 2.2vw, 58px);
    padding: 0 16px;
    max-width: 1300px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -260px;
}
}

@media (max-width: 1370px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 2.0vw, 38px);
    padding: 0 16px;
    max-width: 1300px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1355px)
{
.hero-row{transform: none;}
}

@media (max-width: 1340px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 1.8vw, 28px);
    padding: 0 16px;
    max-width: 1250px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1300px)
{
.cloudbox-2 {
	min-height:600px;
	padding:150px 50px 95px 120px;
}	
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 1.6vw, 20px);
    padding: 0 16px;
    max-width: 1220px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1270px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(18px, 1.4vw, 20px);
    padding: 0 16px;
    max-width: 1220px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1250px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(16px, 1.2vw, 18px);
    padding: 0 16px;
    max-width: 1180px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1230px)
{
.top-nav {
    height: var(--nav-h);
    gap: clamp(14px, .9vw, 16px);
    padding: 0 16px;
    max-width: 1100px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}

@media (max-width: 1205px)
{
.edit_template_wrapper {

  padding: clamp(150px,.5vw,28px) clamp(220px,4vw,48px);
  background-image: url("/images/cloud-background-6.jpg");
}	
.top-nav {
    height: var(--nav-h);
    gap: clamp(13px, .8vw, 15px);
    padding: 0 16px;
    max-width: 1050px;
}
.socials-desktop {
margin-top: -91px;
margin-left: -270px;
}
}


/* ===== Consolidated Media Queries (kept at bottom; overrides earlier if needed) ===== */
@media (max-width: 1230px){
.cta-card img {
  max-width: 300px;
}
}

/* ===== Mobile (≤800px) — reuse drawer ===== */
@media (max-width: 1200px){
  .header-grid{
    grid-template-columns:48px 1fr 48px;
  }
  .hamburger{display:grid;grid-column:1}
  .brand{grid-column:2;display:flex;justify-content:center}
  .top-nav,.socials-desktop{display:none}
  /* Mobile drawer tagline appearance */
  .drawer-tagline{
    display:block;
    padding:10px 16px 0;
    font-style: italic;
    color: var(--nav-red);
    font-size: 15px;
	font-weight:bold;
	text-align:center;
  }
}

@media (max-width: 1065px){
.cta-card img {
  max-width: 250px;
}
.signup-box {
  display: inline-block;
  margin: 10px;
  width: 250px;
  height: 250px;
  vertical-align: top;
}

.premade_banner_table tr td {display:block;}

.signup-box-youtube
{
  width:250px;
  height:250px;
  padding-top:85px;
}

.signup-box-youtube-video {width:230px; height:140px;border-radius:5px;}

}

@media (max-width: 1000px)
{
.about-hero__video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 110px;
  width: 46%;              /* keep same width */
  height: calc((26vw * 9 / 16) + 100px);  /* base 16:9 height + 100px */
  background: #000;
  border: 5px solid #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.cloudbox-edit-account-bak {
  background-image: url("../images/cloud-background-5.jpg");
  background-repeat: repeat-y;          /* repeats vertically */
  background-size: 100% auto;           /* full width, natural height */
  background-position: center -100px;   /* pull image up 100px so next repeat overlaps */
  background-color: #c7e8f6;            /* fallback sky color */
}

.cloudbox-edit-account {padding:150px 25px 150px 25px;background-image: url("../images/cloud-background-4-tall.jpg");}
}



@media (max-width: 980px){
  .about-hero{ width: 90%; min-height: 60vh; background-size: 100% 100%; padding-bottom: 72px; }
  .about-hero__video{ width: 50%; bottom: 32px; }
  .hero-row{ grid-template-columns: 1fr; row-gap: 16px; }
  .promo-col-outer{ width:100%; display:flex; gap:16px; justify-content:center; }
  .promo-col-outer img{ width:46%; max-width:250px; }
    .lb-modal {
    width: 90vw;
    height: 70vh;   /* shrink height on tablets */
  }
}


/* Keep two columns down to 800px (override earlier 980px rule) */
@media (max-width: 980px) and (min-width: 801px){
  .hero-row{
    grid-template-columns: minmax(0, 1fr) 260px; /* cloud | right column */
    column-gap: 24px;
  }
  .promo-col-outer{ width:260px; display:block; }
  .promo-col-outer img{ width:250px; }
}

@media (max-width:950px)
{
.cloudbox-2 {padding:140px 10px 150px 100px;}	
.cloudbox-2-table tr td {display:block;}
.cloudbox-2-table {max-width:70%;}
.edit_template_wrapper {background-image: url("../images/cloud-background-7.jpg") !important;}
}

@media (max-width:900px)
{
.cloudbox-3 {
  font-size: 17px;
  padding: 80px 80px 95px 40px;
  max-width: 95%; 
  background-image: url("../images/cloud-background-4.jpg");
}

	
	
.nonprofit-top-images tr{
    display: flex;
    flex-wrap: wrap;
}
.nonprofit-top-images td{
    flex: 0 0 33.333%;   /* 3 cells per row */
    box-sizing: border-box;
    padding: 4px;        /* optional spacing */
}
.nonprofit-top-images img{
    width: 100%;         /* make images scale */
    height: auto;
    display: block;
}	
}

/* ≤800px: right column drops below; title sits above the two examples; form stacks */
@media (max-width: 800px){
.about-footer-table-txt {font-size: 24px;}
.about-hero{ width: 90%; min-height: 50vh; background-size: 100% 100%; padding-bottom: 52px; }	

.cloudbox-account {
	background-image: url("../images/cloud-background-4.jpg");
	padding: 100px 80px 100px 90px;
}

.cloudbox-3 {
    font-size: 16px;
    padding: 80px 80px 95px 60px;
    max-width: 95%;
  }
  
.promo-col-outer {
  display:none !important;
  width: 260px;
  padding-top: 10px;
}
  .hero-row{
    grid-template-columns: 1fr;   /* cloud full-width, right column below */
    row-gap: 16px;
  }

  /* Cloud: allow it to shrink comfortably on narrow screens */
  .hero-row .cloudbox-3{
    max-width: 100%;
    padding: 40px 24px 54px 24px; /* a bit tighter than desktop */
  }
  
  .login-table {width:85%;}

  /* Stack the 4 inputs vertically (2x2 → 1x4) */
  .search-form .fields{
    grid-template-columns: 1fr;
    max-width: 420px;     /* keeps fields a nice readable width */
    margin: 0 auto;
    gap: 12px;
  }
  .search-form .fields .search-field{ width:100%; }

  /* Right column: show section title above the two images, side-by-side */
  .promo-col-outer{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  /* Your existing first child is the title (bold text div) – place it above the images */
  .promo-col-outer > div:first-child{
    order: -1;                 /* move title above images */
    text-align: center;
    padding-bottom: 6px;
  }
  .promo-col-outer img{
    width: 47%;
    max-width: 280px;
    margin: 0 1%;
  }
  .promo-col-outer img + img{ margin-left: 2%; }
}

@media (max-width: 780px){
  .cta-three table, .cta-three tbody, .cta-three tr { display:block; width:100%; }
  .cta-three td { display:block; width:100%; text-align:center; padding: 10px 0; }
  .cta-three img { width: 100% !important; height: auto !important; max-width: 560px; }
    .cta-three table, .cta-three tbody, .cta-three tr { display:block; width:100%; }
  .cta-three td { display:block; width:100%; text-align:center; padding: 10px 0; }
  .cta-three img { width: 100% !important; height: auto !important; max-width: 560px; }
}
@media (max-width: 768px){
  .header img.logo, .header img.teacher-photo {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
  .section-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .contact-box,
  .note-box {
    width: 97% !important;
    height: 400px !important;
    margin: 0 auto !important;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
  }
  .sticky-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
        .header img.logo, .header img.teacher-photo {
        float: none;
        display: block;
        margin: 0 auto 1rem;
      }
      .section-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
      }
      .contact-box,
      .note-box {
        width: 97% !important;
        height: 400px !important;
        margin: 0 auto !important;
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center;
      }
      .sticky-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
      }
}

@media (max-width:725px)
{
.cloudbox-account {background-image: url("../images/cloud-mobile-3.jpg");padding:80px 50px 70px 50px !important;}	
.main-container {
  padding: 0 0px !important;
  margin: 0px !important;
}
.cloudbox-2 {padding:60px 10px 60px 40px;background-image: url("../images/cloud-mobile.jpg");font-size:12px;}	
.cloudbox-2-table {max-width:80%;}
.cloudbox-edit-account {padding:90px 25px 90px 25px;background-image: url("../images/cloud-mobile-5.jpg");}

}

@media (max-width: 640px){
  .about-hero{ width: 100%; min-height: 40vh; padding-bottom: 52px; }
  .map-img {max-width: 300px;}  
  .my-account-button-2 {margin-right: -40px !important;}
  .nonprofit-row2-pic1 {width:100%;max-width:400px;}
  .nonprofit-row2-pic2 {width:100%;max-width:600px;}
  .search-form .fields{ grid-template-columns: 1fr; max-width: 360px; }
  .search-field{ margin:10px auto; }
  .cta-card img{ max-width: 560px; }
    .lb-modal {
    width: 95vw;
    height: 60vh;   /* even shorter on small phones */
  }
}

/* ≤600px: examples stack one above the other */
@media (max-width: 600px){
  .promo-col-outer{
    flex-direction: column;
    align-items: center;
  }
  .promo-col-outer img{
    width: 92%;
    max-width: 360px;
    margin: 0 0 14px 0;   /* vertical spacing between the two */
  }

.signup-box
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  vertical-align: top;
}

.signup-box img {width:100%;height:100%;}

.signup-box-youtube
{
  display:inline-block;
  margin:10px;
  width:300px;
  height:300px;
  background-image: url(../images/sign-up-why-sign-up.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  vertical-align: top;
  box-sizing: border-box;
  padding-top:120px;
}

.signup-box-youtube-video {width:250px; height:150px;border-radius:10px;}
  
}

/* ===== Cloud + Form fit under ~520px ===== */
@media (max-width: 520px){
  /* Cloud box itself */
  .hero-row .cloudbox-3{
    max-width: 94%;       /* keep it inside the viewport */
    padding: 24px 12px 40px 12px;  /* reduce side padding */
    margin: 0 auto;       /* center */
  }

  /* Form fields */
  .search-form .fields{
    grid-template-columns: 1fr;   /* stack vertically */
    gap: 10px;
    max-width: 100%;      /* prevent horizontal overflow */
  }
  .search-form .fields .search-field{
    width: 85% !important;
  }

  /* Search button */
  .search-form button{
    max-width: 160px;     /* keep button tidy on narrow screens */
    font-size: 15px;
  }

}

/* ===== Nonprofit bottom boxes — fixes for ≤950px and ≤640px ===== */

/* 2 per row, equal & centered */
@media (max-width: 950px) and (min-width: 641px){
  .nonprofit-bottom-boxes{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:flex-start;              /* top-align rows */
    gap:20px;
  }
  .nonprofit-bottom-boxes > *{
    flex: 0 1 calc(50% - 20px);         /* two columns */
    display:flex;                        /* allow centering the image inside */
    justify-content:center;
    align-items:flex-start;
  }
  .nonprofit-bottom-boxes > * img{
    width: min(300px, 100%);            /* equal width, never exceed 300px */
    height:auto;
    display:block;
  }
}

/* ===== Force 1 per row, equal size at ≤640px ===== */

@media (max-width: 640px){
  .nonprofit-bottom-boxes{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
  }

  .nonprofit-bottom-boxes > *{
    flex: 0 0 auto;
    width:300px !important;
    height:478px !important;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    box-sizing:border-box;
    padding:0;
    overflow:visible;
  }

  .nonprofit-bottom-boxes > * img{
    width:300px !important;
    height:478px !important;
    object-fit:contain;  /* prevents cropping */
    display:block;
    margin:0 auto;
  }
}

/* ===== Login: small-screen layout ===== */
@media (max-width: 560px){

  /* keep the whole inner table fluid & centered */
  .login-table form table{
    width:100% !important;
    max-width: 360px;
    margin:0 auto;
    border-collapse:separate;
    border-spacing:0;
  }

  /* stack each row vertically */
  .login-table form table tr{
    display:block;
    margin:10px 0;
  }

  /* put label on its own line (above the field) */
  .login-table form table td{
    display:block;
    width:100%;
    padding:6px 0;
    box-sizing:border-box;
  }
  .login-table form table td:first-child{
    text-align:left;         /* label */
    padding-bottom:4px;
    font-weight:600;         /* optional: make label clearer */
  }

  /* make the inputs full width */
  .login-table .search-field{
    width:100% !important;
    max-width:100%;
    display:block;
  }

  /* center the Log In button */
  .login-table input[type="image"]{
    display:block;
    margin:12px auto 0;      /* centers the image button */
    width:150px;             /* keep tidy on small screens */
    height:auto;
  }
}

/* =========================
   Signup form — mobile fixes
   (scope to the big wrapper table.tableheader)
   ========================= */

/* Let the outer table breathe on small screens */
.tableheader{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* --- A) Inline-block inner tables (name/address/email/password blocks) --- */
/* <= 900px: stack label + field; make fields fluid */
@media (max-width: 900px){
  /* those inner tables are written as: <table style="display: inline-block"> */
  .tableheader table[style*="inline-block"]{
    display: block !important;      /* stop inline layout */
    width: 100% !important;
    max-width: 540px;               /* nice readable cap */
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
  }
  .tableheader table[style*="inline-block"] tr{
    display: block;                  /* each row is a block */
    margin: 10px 0;
  }
  .tableheader table[style*="inline-block"] td{
    display: block;                  /* each cell on its own line */
    width: 100% !important;
    padding: 6px 0 !important;
    box-sizing: border-box;
    text-align: left !important;
    vertical-align: top;
  }
  .tableheader table[style*="inline-block"] td:first-child{
    font-weight: 600;                /* label line */
    padding-bottom: 4px !important;
  }

  /* kill all the fixed widths in inline styles */
  .tableheader input[type="text"],
  .tableheader input[type="email"],
  .tableheader input[type="tel"],
  .tableheader input[type="password"],
  .tableheader select{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* tidy up the “Log In / Submit” image buttons if any appear */
  .tableheader input[type="image"]{
    display: block;
    margin: 12px auto 0;
    height: auto;
    max-width: 180px;
  }
}

/* <= 560px: a touch tighter */
@media (max-width: 560px){
  .tableheader table[style*="inline-block"]{ max-width: 420px; }
}

/* --- B) The three “Your Name Listed in Directory” flex rows --- */
/* They’re written as: <div style="display:flex; padding:8px;"> ... four <div> children ... */
@media (max-width: 1100px){
  .tableheader > tbody > tr > td > div[style*="display: flex"]{
    flex-wrap: wrap;                 /* allow wrapping */
    gap: 8px 12px;                   /* consistent spacing */
  }
  .tableheader > tbody > tr > td > div[style*="display: flex"] > div{
    flex: 1 1 calc(50% - 12px);      /* 2 per row */
    min-width: 260px;                /* don’t collapse too small */
  }
  /* labels on their own line; fields full width */
  .tableheader > tbody > tr > td > div[style*="display: flex"] > div .formtext{
    display: block; margin-bottom: 4px;
  }
  .tableheader > tbody > tr > td > div[style*="display: flex"] input[type="text"],
  .tableheader > tbody > tr > td > div[style*="display: flex"] select{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* <= 600px: stack 1 per row for smallest phones */
@media (max-width: 600px){
  .tableheader > tbody > tr > td > div[style*="display: flex"] > div{
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ==== SEARCH page responsive helpers (add-only) ==== */

/* Make the results cloud/table fluid and centered */
.cloudbox-3.results { font-size: 1.6em;}
.cloudbox-3.results table { width: min(700px, 96%); margin: 0 auto;}

/* Tweak the “Teacher Directory” line spacing on smaller screens */
.search-title { display:block; font-size: 40px; font-weight: 700; margin: 10px 0 6px; }
.search-note  { padding: 0 20px; margin-top: 12px; }

/* Ensure the hero image in the cloud scales down cleanly */
.cloudbox-3 img[alt="The Only Teacher Database"] { max-width: 90%; height: auto; }

/* jQuery UI dialog: make the “no results” modal mobile-friendly */
.ui-dialog { max-width: 92vw !important; width: auto !important; }
.ui-dialog .ui-dialog-content img { width: 100%; height: auto; display: block; }

/* --- Mobile layout (you already have .search-form/.search-field rules; these just refine) --- */
@media (max-width: 800px){
  /* Stack the inputs (your grid rules already exist; this keeps them narrow & readable) */
  .search-form .fields{
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 12px;
  }
  .search-form .fields .search-field{ width: 100%; }
}

/* Phones */
@media (max-width: 640px){
  .search-title { font-size: 32px; }
  .cloudbox-3 { padding-left: 24px; padding-right: 24px; } /* avoid side overflow in the cloud */
  .search-form .fields{ max-width: 360px; }
}

/* ===== My Account cloud — keep top pills side-by-side; don't distort buttons ===== */

/* TOP: two pills side-by-side by default */
.account-top{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  flex-wrap:nowrap;                 /* side-by-side initially */
}
.my-account-top-fields{
  /* remove earlier width clamps */
  width:auto;
  max-width:none;
  padding:16px 22px;
  line-height:1.2;
}

/* ACTIONS: three buttons row, keep original sizes */
.account-actions{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;                   /* allow wrap when space is tight */
}

/* Do NOT force sizes; let the artwork define them */
.my-account-button,
.my-account-button-2{
  flex:0 0 auto;                    /* keep natural width/height */
  margin:0;
}

/* Images keep their native size, but can shrink to fit very narrow screens */
.my-account-button img,
.my-account-button-2 img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;                   /* only shrink if container is smaller */
}

/* Tablet: allow the pills to wrap; still look good */
@media (max-width: 820px){
  .account-top{
    flex-wrap:wrap;                 /* now they can stack if needed */
    gap:14px;
  }
  .my-account-top-fields{
    width:auto;                     /* keep natural width */
    max-width:520px;                /* safety cap so they don't get too wide */
  }
}

/* Small phones: stack pills; buttons keep intrinsic size but center & wrap */
@media (max-width: 560px){
  .account-top{ gap:10px; }
  .my-account-top-fields{
    width:100%;
    max-width:360px;                /* optional cap for very small screens */
    margin:0 auto;
  }
  .account-actions{ gap:18px; }
}