/* style.css - External Stylesheet for Anxiety Disorders Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f4f9ff;
    color: #1a2c3e;
    line-height: 1.5;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  header {
    background: #2b5c8a;
    color: white;
    padding: 1.8rem 0;
    border-bottom: 4px solid #ffb74d;
  }
  
  header h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
  }
  
  .tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
  }
  
  nav {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0.8rem 0;
    gap: 0.5rem;
  }
  
  .nav-links li a {
    text-decoration: none;
    background: #eef2f7;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: #1e4663;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
  }
  
  .nav-links li a:hover {
    background: #2b5c8a;
    color: white;
  }
  
  main {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  h1,
  h2,
  h3 {
    color: #1e3e5c;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
  }
  
  h1 {
    font-size: 2rem;
    margin-top: 0;
  }
  
  h2 {
    border-left: 5px solid #ffb74d;
    padding-left: 1rem;
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
    margin-top: 1rem;
  }
  
  p {
    margin-bottom: 1rem;
    text-align: left;
  }
  
  .center-text {
    text-align: center;
  }
  
  .italic-demo {
    font-style: italic;
    background: #f0f4fa;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
  }
  
  .indent-text {
    text-indent: 2rem;
    margin-left: 1rem;
  }
  
  ul,
  ol {
    margin: 1rem 0 1rem 2rem;
  }
  
  li {
    margin-bottom: 0.4rem;
  }
  
  .info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .info-table caption {
    font-weight: bold;
    background: #e9f0f5;
    padding: 10px;
    caption-side: top;
    font-size: 1.1rem;
    color: #1e4663;
  }
  
  .info-table th,
  .info-table td {
    border: 1px solid #cbdbe2;
    padding: 12px 15px;
    vertical-align: top;
  }
  
  .info-table th {
    background-color: #2b5c8a;
    color: white;
    text-align: left;
  }
  
  .info-table tr:nth-child(even) {
    background-color: #f9fbfd;
  }
  
  .img-flex {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #dce5ef;
    padding: 4px;
    background: white;
  }
  
  .thumbnail {
    width: 180px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-right: 20px;
    float: left;
    margin-bottom: 10px;
  }
  
  .img-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    max-width: 260px;
  }
  
  .clearfix::after {
    content: "";
    clear: both;
    display: table;
  }
  
  .email-link {
    background: #eef2f7;
    padding: 6px 12px;
    border-radius: 24px;
    text-decoration: none;
    color: #2b5c8a;
    font-weight: 500;
  }
  
  .email-link:hover {
    background: #2b5c8a;
    color: white;
  }
  
  footer {
    background: #1e2f3c;
    color: #cbdbe6;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
  }
  
  footer a {
    color: #ffcd94;
    text-decoration: none;
  }
  
  hr {
    margin: 1.5rem 0;
    border: 0;
    height: 1px;
    background: #c0d4e8;
  }
  
  .bookmark-nav {
    margin-top: 20px;
    background: #eef3fc;
    padding: 10px 15px;
    border-radius: 30px;
    display: inline-block;
  }
  
  .back-link {
    display: inline-block;
    margin-top: 1rem;
    background: #eef2f7;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: #1e4663;
  }
  
  .ref-list {
    list-style: none;
    margin-left: 0;
  }
  
  .ref-list li {
    margin-bottom: 1rem;
    padding-left: 0;
  }
  
  .external-links {
    background: #eef3fc;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
  }
  
  .external-links a {
    color: #2b5c8a;
  }
  
  .contact-box {
    background: #f0f4fa;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
  }
  
  @media (max-width: 700px) {
    main {
      padding: 1.2rem;
    }
  
    .nav-links li a {
      padding: 0.4rem 0.9rem;
      font-size: 0.85rem;
    }
  
    .thumbnail,
    .img-right {
      float: none;
      display: block;
      margin: 10px auto;
    }
  }