<style>
    :root {
      --teal: #f87171;
      --teal-dark: #ef4444;
      --light: #f3f4f5;
      --dark: #111;
      --muted: #6b7280;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Inter, 'Segoe UI', Roboto, Arial;
      margin: 0;
      color: #fff;
      background: #0f172a;
      overflow-x: hidden; /* Prevent horizontal overflow */
    }

    /* Top Heading Styles */
    .top-header {
      background: #0f172a; 
      text-align: center;
      padding: 40px 20px;
      margin: 0;
      color: #f87171;
    }

    .top-header h1 {
      font-size: 36px;
      font-weight: 700;
      margin: 0;
      letter-spacing: 2px;
      text-transform: uppercase;
      opacity: 0.95;
    }

    .container {
      display: flex;
      min-height: 100vh;
      margin: 0 10rem; /* Adds 10rem margin from both sides */
      max-width: calc(100vw - 20rem); /* Ensures it fits within viewport minus margins */
    }

    /* LEFT SIDEBAR */
    .sidebar {
      width: 320px;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      color: rgb(13, 11, 11);
      padding: 36px 28px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 2rem;
    }

    .photo {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      overflow: hidden;
      border: 6px solid rgba(255, 255, 255, 0.18);
      margin-bottom: 18px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .name-small {
      font-size: 18px;
      font-weight: 700;
      margin: 8px 0 22px;
    }

    .role {
      font-size: 13px;
      opacity: 0.95;
      margin-bottom: 22px;
    }

    .section-title {
      font-weight: 700;
      letter-spacing: 1px;
      margin: 18px 0 8px;
      font-size: 14px;
      text-transform: uppercase;
    }

    .divider {
      height: 3px;
      width: 60px;
      background: rgba(255, 255, 255, 0.25);
      margin-bottom: 12px;
      border-radius: 2px;
    }

    .info {
      font-size: 14px;
      line-height: 1.6;
      color: rgb(13, 11, 11);
    }

    .muted {
      color: rgba(13, 11, 11, 0.8);
      font-size: 13px;
    }

    .list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .list li {
      margin: 10px 0;
    }

    .sidebar footer {
      margin-top: auto;
      font-size: 12px;
      color: rgba(13, 11, 11, 0.75);
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* MAIN CONTENT */
    .main {
      flex: 1;
      padding: 36px 48px;
    }

    .header {
      background: var(--light);
      padding: 28px;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      color: var(--dark);
    }

    .main h1 {
      font-size: 28px;
      margin: 8px 0;
      color: var(--dark);
    }

    .title {
      font-size: 14px;
      color: var(--muted);
      letter-spacing: 2px;
      margin-bottom: 16px;
    }

    .controls {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 16px;
    }

    /* Basic button styles (added for functionality) */
    .btn {
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: background-color 0.2s;
    }

    .btn--muted {
      background: #e5e7eb;
      color: var(--dark);
    }

    .btn--muted:hover {
      background: #d1d5db;
    }

    .btn--print {
      background: var(--teal);
      color: white;
    }

    .btn--print:hover {
      background: var(--teal-dark);
    }

    .section {
      margin-top: 24px;
      background: rgba(255, 255, 255, 0.05);
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .section h2 {
      color: var(--teal);
      margin: 0 0 12px;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .section p {
      margin: 0;
      color: rgba(255, 255, 255, 0.95);
      line-height: 1.7;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: start;
    }

    .meta {
      color: rgba(255, 255, 255, 0.8);
      font-size: 13px;
      line-height: 1.6;
    }

    .bullet-list {
      margin: 8px 0 0 18px;
      padding-left: 0;
    }

    .bullet-list li {
      margin: 8px 0;
      color: rgba(255, 255, 255, 0.95);
      line-height: 1.5;
    }

    /* GLOBAL FOOTER (Added for enhanced structure, styled similarly to your example) */
    .global-footer {
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      color: rgba(255, 255, 255, 0.9);
      padding: 40px 48px 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 45px;
      margin-top: auto;
      font-size: 13px;
    }

    .footer-section {
      flex: 1 1 280px;
      max-width: 320px;
      color: rgba(255, 255, 255, 0.85);
      text-align: center;
    }

    .footer-section strong {
      color: rgba(255, 255, 255, 0.95);
    }

    /* Media Queries for Responsiveness */

    /* Tablet (max-width: 768px) */
    @media (max-width: 768px) {
      .top-header {
        padding: 30px 15px;
      }

      .top-header h1 {
        font-size: 28px;
        letter-spacing: 1px;
      }

      .container {
        margin: 0 2rem;
        max-width: calc(100vw - 4rem);
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        padding: 24px 20px;
        order: 2; /* Move sidebar below main on tablet */
      }

      .photo {
        width: 90px;
        height: 90px;
        border-width: 4px;
        margin-bottom: 15px;
      }

      .name-small {
        font-size: 16px;
        margin: 6px 0 18px;
      }

      .role {
        font-size: 12px;
        margin-bottom: 18px;
      }

      .section-title {
        font-size: 13px;
        margin: 15px 0 6px;
      }

      .info {
        font-size: 13px;
      }

      .muted {
        font-size: 12px;
      }

      .list li {
        margin: 8px 0;
      }

      .sidebar footer {
        font-size: 11px;
        padding-top: 15px;
      }

      .main {
        padding: 24px 32px;
        order: 1; /* Main first on tablet */
      }

      .header {
        padding: 20px;
      }

      .main h1 {
        font-size: 24px;
      }

      .title {
        font-size: 13px;
      }

      .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
      }

      .btn {
        padding: 10px;
        font-size: 13px;
      }

      .section {
        margin-top: 20px;
        padding: 16px;
      }

      .section h2 {
        font-size: 16px;
      }

      .two-col {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .meta {
        font-size: 12px;
      }

      .bullet-list {
        margin-left: 12px;
      }

      .bullet-list li {
        margin: 6px 0;
        font-size: 14px;
      }
    }

    /* Phone (max-width: 480px) */
    @media (max-width: 480px) {
      .top-header {
        padding: 20px 10px;
      }

      .top-header h1 {
        font-size: 24px;
        letter-spacing: 0.5px;
      }

      .container {
        margin: 0;
        max-width: 100vw;
      }

      .sidebar {
        padding: 20px 15px;
      }

      .photo {
        width: 80px;
        height: 80px;
        border-width: 3px;
        margin-bottom: 12px;
      }

      .name-small {
        font-size: 15px;
        margin: 5px 0 15px;
      }

      .role {
        font-size: 11px;
        margin-bottom: 15px;
      }

      .section-title {
        font-size: 12px;
        margin: 12px 0 5px;
      }

      .divider {
        width: 50px;
        height: 2px;
      }

      .info {
        font-size: 12px;
        line-height: 1.5;
      }

      .muted {
        font-size: 11px;
      }

      .list li {
        margin: 6px 0;
      }

      .sidebar footer {
        font-size: 10px;
        padding-top: 12px;
      }

      .main {
        padding: 16px 20px;
      }

      .header {
        padding: 16px;
        border-radius: 6px;
      }

      .main h1 {
        font-size: 20px;
        margin: 6px 0;
      }

      .title {
        font-size: 12px;
        margin-bottom: 12px;
      }

      .controls {
        gap: 4px;
      }

      .btn {
        padding: 8px;
        font-size: 12px;
      }

      .section {
        margin-top: 16px;
        padding: 12px;
        border-radius: 6px;
      }

      .section h2 {
        font-size: 15px;
        margin-bottom: 10px;
      }

      .section p {
        line-height: 1.6;
        font-size: 14px;
      }

      .two-col {
        gap: 12px;
      }

      .meta {
        font-size: 11px;
        line-height: 1.5;
      }

      .bullet-list {
        margin-left: 10px;
      }

      .bullet-list li {
        margin: 5px 0;
        font-size: 13px;
        line-height: 1.4;
      }

      /* Hide global footer on very small screens if it exists, or adjust */
      .global-footer {
        padding: 20px 20px 10px;
        gap: 20px;
        font-size: 11px;
      }

      .footer-section {
        flex: 1 1 100%;
        max-width: none;
      }
    }

    /* Ensure no horizontal scroll on small screens */
    @media (max-width: 480px) {
      body {
        overflow-x: hidden;
      }

      .container,
      .main,
      .sidebar {
        overflow-x: hidden;
      }
    }
  </style>